import { Long, unknownFieldsSymbol } from "../../../../runtime/protos/index.js"; import type { Dayjs, Duration, MessageDescriptor, MessageFns, EnumInstance, EnumClass } from "../../../../runtime/protos/index.js"; import { customJson } from "../../../../runtime/util/logging.js"; import { ChannelCredentials, Client, ClientUnaryCall, ClientOptions, CallOptions, Metadata, ServiceError as GrpcServiceError, handleUnaryCall, UntypedServiceImplementation } from "@grpc/grpc-js"; import type { SDKInterface } from "../../../../sdk.js"; import { Request as SDKRequestClass, type RetryOptions } from "../../../../runtime/request.js"; import { Operation as OperationWrapper } from "../../../../runtime/operation.js"; import { GetByNameRequest, GetOperationRequest, Operation, OperationService, ResourceMetadata } from "../../common/v1/index.js"; /** * Represents the `nebius.storage.v1.StorageClass` protobuf enum. */ export type StorageClass = EnumInstance<"UNRECOGNIZED" | "STORAGE_CLASS_UNSPECIFIED" | "STANDARD" | "ENHANCED_THROUGHPUT" | "INTELLIGENT" | "FILESYSTEM">; /** Defines the static values of {@link StorageClass}. */ export interface StorageClassValueMembers { /** * Represents the `STORAGE_CLASS_UNSPECIFIED` protobuf enum value. */ readonly STORAGE_CLASS_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "STORAGE_CLASS_UNSPECIFIED" | "STANDARD" | "ENHANCED_THROUGHPUT" | "INTELLIGENT" | "FILESYSTEM">; /** * Represents the `STANDARD` protobuf enum value. */ readonly STANDARD: EnumInstance<"UNRECOGNIZED" | "STORAGE_CLASS_UNSPECIFIED" | "STANDARD" | "ENHANCED_THROUGHPUT" | "INTELLIGENT" | "FILESYSTEM">; /** * Represents the `ENHANCED_THROUGHPUT` protobuf enum value. */ readonly ENHANCED_THROUGHPUT: EnumInstance<"UNRECOGNIZED" | "STORAGE_CLASS_UNSPECIFIED" | "STANDARD" | "ENHANCED_THROUGHPUT" | "INTELLIGENT" | "FILESYSTEM">; /** * Represents the `INTELLIGENT` protobuf enum value. */ readonly INTELLIGENT: EnumInstance<"UNRECOGNIZED" | "STORAGE_CLASS_UNSPECIFIED" | "STANDARD" | "ENHANCED_THROUGHPUT" | "INTELLIGENT" | "FILESYSTEM">; /** * Special storage class only for filesystem buckets. * */ readonly FILESYSTEM: EnumInstance<"UNRECOGNIZED" | "STORAGE_CLASS_UNSPECIFIED" | "STANDARD" | "ENHANCED_THROUGHPUT" | "INTELLIGENT" | "FILESYSTEM">; } /** Defines the runtime API for {@link StorageClass}. */ export type StorageClassClass = EnumClass<"UNRECOGNIZED" | "STORAGE_CLASS_UNSPECIFIED" | "STANDARD" | "ENHANCED_THROUGHPUT" | "INTELLIGENT" | "FILESYSTEM"> & StorageClassValueMembers; /** Converts and creates {@link StorageClass} values. */ export declare const StorageClass: StorageClassClass; /** * Represents the `nebius.storage.v1.VersioningPolicy` protobuf enum. */ export type VersioningPolicy = EnumInstance<"UNRECOGNIZED" | "VERSIONING_POLICY_UNSPECIFIED" | "DISABLED" | "ENABLED" | "SUSPENDED">; /** Defines the static values of {@link VersioningPolicy}. */ export interface VersioningPolicyValueMembers { /** * Represents the `VERSIONING_POLICY_UNSPECIFIED` protobuf enum value. */ readonly VERSIONING_POLICY_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "VERSIONING_POLICY_UNSPECIFIED" | "DISABLED" | "ENABLED" | "SUSPENDED">; /** * Represents the `DISABLED` protobuf enum value. */ readonly DISABLED: EnumInstance<"UNRECOGNIZED" | "VERSIONING_POLICY_UNSPECIFIED" | "DISABLED" | "ENABLED" | "SUSPENDED">; /** * Represents the `ENABLED` protobuf enum value. */ readonly ENABLED: EnumInstance<"UNRECOGNIZED" | "VERSIONING_POLICY_UNSPECIFIED" | "DISABLED" | "ENABLED" | "SUSPENDED">; /** * Represents the `SUSPENDED` protobuf enum value. */ readonly SUSPENDED: EnumInstance<"UNRECOGNIZED" | "VERSIONING_POLICY_UNSPECIFIED" | "DISABLED" | "ENABLED" | "SUSPENDED">; } /** Defines the runtime API for {@link VersioningPolicy}. */ export type VersioningPolicyClass = EnumClass<"UNRECOGNIZED" | "VERSIONING_POLICY_UNSPECIFIED" | "DISABLED" | "ENABLED" | "SUSPENDED"> & VersioningPolicyValueMembers; /** Converts and creates {@link VersioningPolicy} values. */ export declare const VersioningPolicy: VersioningPolicyClass; /** Represents the `nebius.storage.v1.CurrentBucketCounters` protobuf message. */ export interface CurrentBucketCounters { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.CurrentBucketCounters"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** Contains the `simple_objects_quantity` protobuf field. */ simpleObjectsQuantity: Long; /** Contains the `simple_objects_size` protobuf field. */ simpleObjectsSize: Long; /** Contains the `multipart_objects_quantity` protobuf field. */ multipartObjectsQuantity: Long; /** Contains the `multipart_objects_size` protobuf field. */ multipartObjectsSize: Long; /** Contains the `multipart_uploads_quantity` protobuf field. */ multipartUploadsQuantity: Long; /** Contains the `inflight_parts_quantity` protobuf field. */ inflightPartsQuantity: Long; /** Contains the `inflight_parts_size` protobuf field. */ inflightPartsSize: Long; } /** Encodes, decodes, converts, and creates {@link CurrentBucketCounters} messages. */ export declare const CurrentBucketCounters: MessageFns; /** * Counters for non-current object versions (for versioning buckets). * */ export interface NonCurrentBucketCounters { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.NonCurrentBucketCounters"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** Contains the `simple_objects_quantity` protobuf field. */ simpleObjectsQuantity: Long; /** Contains the `simple_objects_size` protobuf field. */ simpleObjectsSize: Long; /** Contains the `multipart_objects_quantity` protobuf field. */ multipartObjectsQuantity: Long; /** Contains the `multipart_objects_size` protobuf field. */ multipartObjectsSize: Long; } /** Encodes, decodes, converts, and creates {@link NonCurrentBucketCounters} messages. */ export declare const NonCurrentBucketCounters: MessageFns; /** Represents the `nebius.storage.v1.BucketCounters` protobuf message. */ export interface BucketCounters { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.BucketCounters"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** Contains the `storage_class` protobuf field. */ storageClass: StorageClass; /** Contains the `counters` protobuf field. */ counters?: CurrentBucketCounters | undefined; /** Contains the `non_current_counters` protobuf field. */ nonCurrentCounters?: NonCurrentBucketCounters | undefined; } /** Encodes, decodes, converts, and creates {@link BucketCounters} messages. */ export declare const BucketCounters: MessageFns; /** * Bucket policy specifies granular permissions for a bucket. * */ export interface BucketPolicy { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.BucketPolicy"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Rule specifies which role must be given to a subject to access a set of objects with given * prefixes or a whole bucket. * */ rules: BucketPolicy_Rule[]; } /** Encodes, decodes, converts, and creates {@link BucketPolicy} messages. */ export declare const BucketPolicy: MessageFns; /** Represents the `nebius.storage.v1.BucketPolicy.Rule` protobuf message. */ export interface BucketPolicy_Rule { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.BucketPolicy.Rule"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * A list of paths each of which is either a full object key or a prefix ending with a * single "*" wildcard character. A rule is only applied to objects matching any of paths. * If there is a path equal to "*", a rule applies to a whole bucket. * */ paths: string[]; /** * A set of roles which a subject will have. All `storage.*` roles are supported. * */ roles: string[]; /** * A subject of a rule. * */ subject?: { $case: "groupId"; groupId: string; } | { $case: "anonymous"; anonymous: BucketPolicy_Rule_AnonymousAccess; } | undefined; } /** Encodes, decodes, converts, and creates {@link BucketPolicy_Rule} messages. */ export declare const BucketPolicy_Rule: MessageFns; /** Represents the `nebius.storage.v1.BucketPolicy.Rule.AnonymousAccess` protobuf message. */ export interface BucketPolicy_Rule_AnonymousAccess { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.BucketPolicy.Rule.AnonymousAccess"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; } /** Encodes, decodes, converts, and creates {@link BucketPolicy_Rule_AnonymousAccess} messages. */ export declare const BucketPolicy_Rule_AnonymousAccess: MessageFns; /** Represents the `nebius.storage.v1.GetBucketRequest` protobuf message. */ export interface GetBucketRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.GetBucketRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** Contains the `id` protobuf field. */ id: string; } /** Encodes, decodes, converts, and creates {@link GetBucketRequest} messages. */ export declare const GetBucketRequest: MessageFns; /** Represents the `nebius.storage.v1.GetBucketByNameRequest` protobuf message. */ export interface GetBucketByNameRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.GetBucketByNameRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** Contains the `parent_id` protobuf field. */ parentId: string; /** Contains the `name` protobuf field. */ name: string; } /** Encodes, decodes, converts, and creates {@link GetBucketByNameRequest} messages. */ export declare const GetBucketByNameRequest: MessageFns; /** Represents the `nebius.storage.v1.CreateBucketRequest` protobuf message. */ export interface CreateBucketRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.CreateBucketRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** Contains the `metadata` protobuf field. */ metadata?: ResourceMetadata | undefined; /** Contains the `spec` protobuf field. */ spec?: BucketSpec | undefined; } /** Encodes, decodes, converts, and creates {@link CreateBucketRequest} messages. */ export declare const CreateBucketRequest: MessageFns; /** Represents the `nebius.storage.v1.UpdateBucketRequest` protobuf message. */ export interface UpdateBucketRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.UpdateBucketRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** Contains the `metadata` protobuf field. */ metadata?: ResourceMetadata | undefined; /** Contains the `spec` protobuf field. */ spec?: BucketSpec | undefined; } /** Encodes, decodes, converts, and creates {@link UpdateBucketRequest} messages. */ export declare const UpdateBucketRequest: MessageFns; /** Represents the `nebius.storage.v1.DeleteBucketRequest` protobuf message. */ export interface DeleteBucketRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.DeleteBucketRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** Contains the `id` protobuf field. */ id: string; /** * You can provide purge_at or ttl after which the bucket will be purged automatically. * Otherwise, default ttl of 7 days will be applied. * */ purge?: { $case: "purgeAt"; purgeAt: Dayjs; } | { $case: "ttl"; ttl: Duration; } | undefined; } /** Encodes, decodes, converts, and creates {@link DeleteBucketRequest} messages. */ export declare const DeleteBucketRequest: MessageFns; /** Represents the `nebius.storage.v1.PurgeBucketRequest` protobuf message. */ export interface PurgeBucketRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.PurgeBucketRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** Contains the `id` protobuf field. */ id: string; } /** Encodes, decodes, converts, and creates {@link PurgeBucketRequest} messages. */ export declare const PurgeBucketRequest: MessageFns; /** Represents the `nebius.storage.v1.UndeleteBucketRequest` protobuf message. */ export interface UndeleteBucketRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.UndeleteBucketRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** Contains the `id` protobuf field. */ id: string; } /** Encodes, decodes, converts, and creates {@link UndeleteBucketRequest} messages. */ export declare const UndeleteBucketRequest: MessageFns; /** Represents the `nebius.storage.v1.ListBucketsRequest` protobuf message. */ export interface ListBucketsRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.ListBucketsRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Represents the container ID. * */ parentId: string; /** * Specifies the maximum number of items to return in the response. * */ pageSize: Long; /** * Token for pagination, allowing the retrieval of the next set of results. * */ pageToken: string; /** * A filter to narrow down the results based on specific criteria. * */ filter: string; } /** Encodes, decodes, converts, and creates {@link ListBucketsRequest} messages. */ export declare const ListBucketsRequest: MessageFns; /** Represents the `nebius.storage.v1.ListBucketsResponse` protobuf message. */ export interface ListBucketsResponse { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.ListBucketsResponse"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * List of buckets returned in the response. The field should be named as `items` for consistency. * */ items: Bucket[]; /** * Token for pagination, indicating the next set of results can be retrieved using this token. * */ nextPageToken: string; } /** Encodes, decodes, converts, and creates {@link ListBucketsResponse} messages. */ export declare const ListBucketsResponse: MessageFns; /** Represents the `nebius.storage.v1.ListBucketsWithFilterRequest` protobuf message. */ export interface ListBucketsWithFilterRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.ListBucketsWithFilterRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Represents the container ID. * */ parentId: string; /** * Specifies the maximum number of items to return in the response. * */ pageSize: Long; /** * Token for pagination, allowing the retrieval of the next set of results. * */ pageToken: string; /** * Additional filters for buckets. * */ filters?: ListBucketsWithFilterRequest_Filters | undefined; } /** Encodes, decodes, converts, and creates {@link ListBucketsWithFilterRequest} messages. */ export declare const ListBucketsWithFilterRequest: MessageFns; /** Represents the `nebius.storage.v1.ListBucketsWithFilterRequest.Filters` protobuf message. */ export interface ListBucketsWithFilterRequest_Filters { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.ListBucketsWithFilterRequest.Filters"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * If set, only buckets of the specified type will be returned. If not set, all bucket types will be returned. * */ bucketType: BucketStatus_BucketType; /** * If not empty, only buckets mounted to the specified filesystem will be returned. * */ filesystemId: string; } /** Encodes, decodes, converts, and creates {@link ListBucketsWithFilterRequest_Filters} messages. */ export declare const ListBucketsWithFilterRequest_Filters: MessageFns; /** Represents the `nebius.storage.v1.ListBucketsWithFilterResponse` protobuf message. */ export interface ListBucketsWithFilterResponse { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.ListBucketsWithFilterResponse"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * List of buckets returned in the response. The field should be named as `items` for consistency. * */ items: Bucket[]; /** * Token for pagination, indicating the next set of results can be retrieved using this token. * */ nextPageToken: string; } /** Encodes, decodes, converts, and creates {@link ListBucketsWithFilterResponse} messages. */ export declare const ListBucketsWithFilterResponse: MessageFns; /** * Defines the gRPC methods for the `nebius.storage.v1.BucketService` service. */ export type BucketServiceServiceDescription = typeof BucketServiceServiceDescription; /** * Describes the gRPC methods for the `nebius.storage.v1.BucketService` service. */ export declare const BucketServiceServiceDescription: { readonly get: { readonly path: "/nebius.storage.v1.BucketService/Get"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetBucketRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => GetBucketRequest; readonly responseSerialize: (value: Bucket) => Buffer; readonly responseDeserialize: (value: Buffer) => Bucket; }; readonly getByName: { readonly path: "/nebius.storage.v1.BucketService/GetByName"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetBucketByNameRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => GetBucketByNameRequest; readonly responseSerialize: (value: Bucket) => Buffer; readonly responseDeserialize: (value: Buffer) => Bucket; }; readonly list: { readonly path: "/nebius.storage.v1.BucketService/List"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListBucketsRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => ListBucketsRequest; readonly responseSerialize: (value: ListBucketsResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListBucketsResponse; }; readonly listWithFilter: { readonly path: "/nebius.storage.v1.BucketService/ListWithFilter"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListBucketsWithFilterRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => ListBucketsWithFilterRequest; readonly responseSerialize: (value: ListBucketsWithFilterResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListBucketsWithFilterResponse; }; readonly create: { readonly path: "/nebius.storage.v1.BucketService/Create"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: CreateBucketRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => CreateBucketRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; readonly update: { readonly path: "/nebius.storage.v1.BucketService/Update"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: UpdateBucketRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: true; readonly requestDeserialize: (value: Buffer) => UpdateBucketRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; readonly delete: { readonly path: "/nebius.storage.v1.BucketService/Delete"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: DeleteBucketRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => DeleteBucketRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; readonly purge: { readonly path: "/nebius.storage.v1.BucketService/Purge"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: PurgeBucketRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => PurgeBucketRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; readonly undelete: { readonly path: "/nebius.storage.v1.BucketService/Undelete"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: UndeleteBucketRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => UndeleteBucketRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; }; /** * Handles server calls for the `nebius.storage.v1.BucketService` service. */ export interface BucketServiceServer extends UntypedServiceImplementation { /** * Handles the `Get` RPC. */ get: handleUnaryCall; /** * Handles the `GetByName` RPC. */ getByName: handleUnaryCall; /** * Handles the `List` RPC. */ list: handleUnaryCall; /** * ListWithFilter lists only buckets with specified filters (e.g. bucket_type and filesystem_id). * */ listWithFilter: handleUnaryCall; /** * Handles the `Create` RPC. */ create: handleUnaryCall; /** * Handles the `Update` RPC. */ update: handleUnaryCall; /** * Handles the `Delete` RPC. */ delete: handleUnaryCall; /** * Purge instantly deletes the bucket in ScheduledForDeletion state. * It can be used only for buckets in ScheduledForDeletion state. * If you want to delete Active bucket instantly, use Delete with zero ttl. * */ purge: handleUnaryCall; /** * Undelete recovers the bucket from ScheduledForDeletion state to Active. * */ undelete: handleUnaryCall; } /** * Defines the low-level gRPC client for the `nebius.storage.v1.BucketService` service. */ export interface BucketServiceBaseClient extends Client { /** * Calls the `Get` RPC. */ get(request: GetBucketRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Bucket) => void): ClientUnaryCall; /** * Calls the `GetByName` RPC. */ getByName(request: GetBucketByNameRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Bucket) => void): ClientUnaryCall; /** * Calls the `List` RPC. */ list(request: ListBucketsRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: ListBucketsResponse) => void): ClientUnaryCall; /** * ListWithFilter lists only buckets with specified filters (e.g. bucket_type and filesystem_id). * */ listWithFilter(request: ListBucketsWithFilterRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: ListBucketsWithFilterResponse) => void): ClientUnaryCall; /** * Calls the `Create` RPC. */ create(request: CreateBucketRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Operation) => void): ClientUnaryCall; /** * Calls the `Update` RPC. */ update(request: UpdateBucketRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Operation) => void): ClientUnaryCall; /** * Calls the `Delete` RPC. */ delete(request: DeleteBucketRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Operation) => void): ClientUnaryCall; /** * Purge instantly deletes the bucket in ScheduledForDeletion state. * It can be used only for buckets in ScheduledForDeletion state. * If you want to delete Active bucket instantly, use Delete with zero ttl. * */ purge(request: PurgeBucketRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Operation) => void): ClientUnaryCall; /** * Undelete recovers the bucket from ScheduledForDeletion state to Active. * */ undelete(request: UndeleteBucketRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Operation) => void): ClientUnaryCall; } /** * Creates low-level gRPC clients for the `nebius.storage.v1.BucketService` service. */ export declare const BucketServiceBaseClient: { /** Creates a low-level client for the service address. */ new (address: string, credentials: ChannelCredentials, options?: Partial): BucketServiceBaseClient; /** Contains the gRPC service description. */ service: typeof BucketServiceServiceDescription; /** Contains the fully qualified protobuf service name. */ serviceName: string; }; /** * Calls the `nebius.storage.v1.BucketService` service. */ export interface BucketService { /** Contains the fully qualified protobuf service name. */ $type: "nebius.storage.v1.BucketService"; /** * Calls the `Get` RPC. */ get(request: GetBucketRequest): SDKRequestClass; /** * Calls the `Get` RPC. */ get(request: GetBucketRequest, metadata: Metadata): SDKRequestClass; /** * Calls the `Get` RPC. */ get(request: GetBucketRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Calls the `GetByName` RPC. */ getByName(request: GetBucketByNameRequest): SDKRequestClass; /** * Calls the `GetByName` RPC. */ getByName(request: GetBucketByNameRequest, metadata: Metadata): SDKRequestClass; /** * Calls the `GetByName` RPC. */ getByName(request: GetBucketByNameRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Calls the `List` RPC. */ list(request: ListBucketsRequest): SDKRequestClass; /** * Calls the `List` RPC. */ list(request: ListBucketsRequest, metadata: Metadata): SDKRequestClass; /** * Calls the `List` RPC. */ list(request: ListBucketsRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * ListWithFilter lists only buckets with specified filters (e.g. bucket_type and filesystem_id). * */ listWithFilter(request: ListBucketsWithFilterRequest): SDKRequestClass; /** * ListWithFilter lists only buckets with specified filters (e.g. bucket_type and filesystem_id). * */ listWithFilter(request: ListBucketsWithFilterRequest, metadata: Metadata): SDKRequestClass; /** * ListWithFilter lists only buckets with specified filters (e.g. bucket_type and filesystem_id). * */ listWithFilter(request: ListBucketsWithFilterRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Calls the `Create` RPC. */ create(request: CreateBucketRequest): SDKRequestClass>; /** * Calls the `Create` RPC. */ create(request: CreateBucketRequest, metadata: Metadata): SDKRequestClass>; /** * Calls the `Create` RPC. */ create(request: CreateBucketRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Calls the `Update` RPC. */ update(request: UpdateBucketRequest): SDKRequestClass>; /** * Calls the `Update` RPC. */ update(request: UpdateBucketRequest, metadata: Metadata): SDKRequestClass>; /** * Calls the `Update` RPC. */ update(request: UpdateBucketRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Calls the `Delete` RPC. */ delete(request: DeleteBucketRequest): SDKRequestClass>; /** * Calls the `Delete` RPC. */ delete(request: DeleteBucketRequest, metadata: Metadata): SDKRequestClass>; /** * Calls the `Delete` RPC. */ delete(request: DeleteBucketRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Purge instantly deletes the bucket in ScheduledForDeletion state. * It can be used only for buckets in ScheduledForDeletion state. * If you want to delete Active bucket instantly, use Delete with zero ttl. * */ purge(request: PurgeBucketRequest): SDKRequestClass>; /** * Purge instantly deletes the bucket in ScheduledForDeletion state. * It can be used only for buckets in ScheduledForDeletion state. * If you want to delete Active bucket instantly, use Delete with zero ttl. * */ purge(request: PurgeBucketRequest, metadata: Metadata): SDKRequestClass>; /** * Purge instantly deletes the bucket in ScheduledForDeletion state. * It can be used only for buckets in ScheduledForDeletion state. * If you want to delete Active bucket instantly, use Delete with zero ttl. * */ purge(request: PurgeBucketRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Undelete recovers the bucket from ScheduledForDeletion state to Active. * */ undelete(request: UndeleteBucketRequest): SDKRequestClass>; /** * Undelete recovers the bucket from ScheduledForDeletion state to Active. * */ undelete(request: UndeleteBucketRequest, metadata: Metadata): SDKRequestClass>; /** * Undelete recovers the bucket from ScheduledForDeletion state to Active. * */ undelete(request: UndeleteBucketRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; } /** * Calls the `nebius.storage.v1.BucketService` service through the Nebius SDK. */ export declare class BucketService implements BucketService { private sdk; $type: "nebius.storage.v1.BucketService"; private addr; private spec; private apiServiceName; /** Creates a client that uses the SDK service address. */ constructor(sdk: SDKInterface); /** Returns the operation service for this service address. */ getOperationService(): OperationService; /** * Calls the `Get` RPC. */ get(request: GetBucketRequest): SDKRequestClass; /** * Calls the `Get` RPC. */ get(request: GetBucketRequest, metadata: Metadata): SDKRequestClass; /** * Calls the `Get` RPC. */ get(request: GetBucketRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Calls the `GetByName` RPC. */ getByName(request: GetBucketByNameRequest): SDKRequestClass; /** * Calls the `GetByName` RPC. */ getByName(request: GetBucketByNameRequest, metadata: Metadata): SDKRequestClass; /** * Calls the `GetByName` RPC. */ getByName(request: GetBucketByNameRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Calls the `List` RPC. */ list(request: ListBucketsRequest): SDKRequestClass; /** * Calls the `List` RPC. */ list(request: ListBucketsRequest, metadata: Metadata): SDKRequestClass; /** * Calls the `List` RPC. */ list(request: ListBucketsRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * ListWithFilter lists only buckets with specified filters (e.g. bucket_type and filesystem_id). * */ listWithFilter(request: ListBucketsWithFilterRequest): SDKRequestClass; /** * ListWithFilter lists only buckets with specified filters (e.g. bucket_type and filesystem_id). * */ listWithFilter(request: ListBucketsWithFilterRequest, metadata: Metadata): SDKRequestClass; /** * ListWithFilter lists only buckets with specified filters (e.g. bucket_type and filesystem_id). * */ listWithFilter(request: ListBucketsWithFilterRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Calls the `Create` RPC. */ create(request: CreateBucketRequest): SDKRequestClass>; /** * Calls the `Create` RPC. */ create(request: CreateBucketRequest, metadata: Metadata): SDKRequestClass>; /** * Calls the `Create` RPC. */ create(request: CreateBucketRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Calls the `Update` RPC. */ update(request: UpdateBucketRequest): SDKRequestClass>; /** * Calls the `Update` RPC. */ update(request: UpdateBucketRequest, metadata: Metadata): SDKRequestClass>; /** * Calls the `Update` RPC. */ update(request: UpdateBucketRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Calls the `Delete` RPC. */ delete(request: DeleteBucketRequest): SDKRequestClass>; /** * Calls the `Delete` RPC. */ delete(request: DeleteBucketRequest, metadata: Metadata): SDKRequestClass>; /** * Calls the `Delete` RPC. */ delete(request: DeleteBucketRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Purge instantly deletes the bucket in ScheduledForDeletion state. * It can be used only for buckets in ScheduledForDeletion state. * If you want to delete Active bucket instantly, use Delete with zero ttl. * */ purge(request: PurgeBucketRequest): SDKRequestClass>; /** * Purge instantly deletes the bucket in ScheduledForDeletion state. * It can be used only for buckets in ScheduledForDeletion state. * If you want to delete Active bucket instantly, use Delete with zero ttl. * */ purge(request: PurgeBucketRequest, metadata: Metadata): SDKRequestClass>; /** * Purge instantly deletes the bucket in ScheduledForDeletion state. * It can be used only for buckets in ScheduledForDeletion state. * If you want to delete Active bucket instantly, use Delete with zero ttl. * */ purge(request: PurgeBucketRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Undelete recovers the bucket from ScheduledForDeletion state to Active. * */ undelete(request: UndeleteBucketRequest): SDKRequestClass>; /** * Undelete recovers the bucket from ScheduledForDeletion state to Active. * */ undelete(request: UndeleteBucketRequest, metadata: Metadata): SDKRequestClass>; /** * Undelete recovers the bucket from ScheduledForDeletion state to Active. * */ undelete(request: UndeleteBucketRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; } /** * Represents the `nebius.storage.v1.BucketSpec.ObjectAuditLogging` protobuf enum. */ export type BucketSpec_ObjectAuditLogging = EnumInstance<"UNRECOGNIZED" | "OBJECT_AUDIT_LOGGING_UNSPECIFIED" | "NONE" | "MUTATE_ONLY" | "ALL">; /** Defines the static values of {@link BucketSpec_ObjectAuditLogging}. */ export interface BucketSpec_ObjectAuditLoggingValueMembers { /** * Represents the `OBJECT_AUDIT_LOGGING_UNSPECIFIED` protobuf enum value. */ readonly OBJECT_AUDIT_LOGGING_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "OBJECT_AUDIT_LOGGING_UNSPECIFIED" | "NONE" | "MUTATE_ONLY" | "ALL">; /** * Logging is disabled. * */ readonly NONE: EnumInstance<"UNRECOGNIZED" | "OBJECT_AUDIT_LOGGING_UNSPECIFIED" | "NONE" | "MUTATE_ONLY" | "ALL">; /** * Logging enabled only for mutating requests. * */ readonly MUTATE_ONLY: EnumInstance<"UNRECOGNIZED" | "OBJECT_AUDIT_LOGGING_UNSPECIFIED" | "NONE" | "MUTATE_ONLY" | "ALL">; /** * Logging enabled for all requests. * */ readonly ALL: EnumInstance<"UNRECOGNIZED" | "OBJECT_AUDIT_LOGGING_UNSPECIFIED" | "NONE" | "MUTATE_ONLY" | "ALL">; } /** Defines the runtime API for {@link BucketSpec_ObjectAuditLogging}. */ export type BucketSpec_ObjectAuditLoggingClass = EnumClass<"UNRECOGNIZED" | "OBJECT_AUDIT_LOGGING_UNSPECIFIED" | "NONE" | "MUTATE_ONLY" | "ALL"> & BucketSpec_ObjectAuditLoggingValueMembers; /** Converts and creates {@link BucketSpec_ObjectAuditLogging} values. */ export declare const BucketSpec_ObjectAuditLogging: BucketSpec_ObjectAuditLoggingClass; /** * Represents the `nebius.storage.v1.BucketStatus.State` protobuf enum. */ export type BucketStatus_State = EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "CREATING" | "ACTIVE" | "UPDATING" | "SCHEDULED_FOR_DELETION">; /** Defines the static values of {@link BucketStatus_State}. */ export interface BucketStatus_StateValueMembers { /** * Represents the `STATE_UNSPECIFIED` protobuf enum value. */ readonly STATE_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "CREATING" | "ACTIVE" | "UPDATING" | "SCHEDULED_FOR_DELETION">; /** * Bucket is under creation and cannot be used yet. * */ readonly CREATING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "CREATING" | "ACTIVE" | "UPDATING" | "SCHEDULED_FOR_DELETION">; /** * Bucket is active and ready for usage. * */ readonly ACTIVE: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "CREATING" | "ACTIVE" | "UPDATING" | "SCHEDULED_FOR_DELETION">; /** * Bucket is being updated. * It can be used, but some settings are being modified and you can observe their inconsistency. * */ readonly UPDATING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "CREATING" | "ACTIVE" | "UPDATING" | "SCHEDULED_FOR_DELETION">; /** * Bucket is scheduled for deletion. * It cannot be used in s3 api anymore. * */ readonly SCHEDULED_FOR_DELETION: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "CREATING" | "ACTIVE" | "UPDATING" | "SCHEDULED_FOR_DELETION">; } /** Defines the runtime API for {@link BucketStatus_State}. */ export type BucketStatus_StateClass = EnumClass<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "CREATING" | "ACTIVE" | "UPDATING" | "SCHEDULED_FOR_DELETION"> & BucketStatus_StateValueMembers; /** Converts and creates {@link BucketStatus_State} values. */ export declare const BucketStatus_State: BucketStatus_StateClass; /** * Represents the `nebius.storage.v1.BucketStatus.SuspensionState` protobuf enum. */ export type BucketStatus_SuspensionState = EnumInstance<"UNRECOGNIZED" | "SUSPENSION_STATE_UNSPECIFIED" | "NOT_SUSPENDED" | "SUSPENDED">; /** Defines the static values of {@link BucketStatus_SuspensionState}. */ export interface BucketStatus_SuspensionStateValueMembers { /** * Represents the `SUSPENSION_STATE_UNSPECIFIED` protobuf enum value. */ readonly SUSPENSION_STATE_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "SUSPENSION_STATE_UNSPECIFIED" | "NOT_SUSPENDED" | "SUSPENDED">; /** * Represents the `NOT_SUSPENDED` protobuf enum value. */ readonly NOT_SUSPENDED: EnumInstance<"UNRECOGNIZED" | "SUSPENSION_STATE_UNSPECIFIED" | "NOT_SUSPENDED" | "SUSPENDED">; /** * Represents the `SUSPENDED` protobuf enum value. */ readonly SUSPENDED: EnumInstance<"UNRECOGNIZED" | "SUSPENSION_STATE_UNSPECIFIED" | "NOT_SUSPENDED" | "SUSPENDED">; } /** Defines the runtime API for {@link BucketStatus_SuspensionState}. */ export type BucketStatus_SuspensionStateClass = EnumClass<"UNRECOGNIZED" | "SUSPENSION_STATE_UNSPECIFIED" | "NOT_SUSPENDED" | "SUSPENDED"> & BucketStatus_SuspensionStateValueMembers; /** Converts and creates {@link BucketStatus_SuspensionState} values. */ export declare const BucketStatus_SuspensionState: BucketStatus_SuspensionStateClass; /** * BucketType is a type of the bucket. * */ export type BucketStatus_BucketType = EnumInstance<"UNRECOGNIZED" | "BUCKET_TYPE_UNSPECIFIED" | "REGULAR" | "FILESYSTEM">; /** Defines the static values of {@link BucketStatus_BucketType}. */ export interface BucketStatus_BucketTypeValueMembers { /** * Represents the `BUCKET_TYPE_UNSPECIFIED` protobuf enum value. */ readonly BUCKET_TYPE_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "BUCKET_TYPE_UNSPECIFIED" | "REGULAR" | "FILESYSTEM">; /** * Regular object storage bucket. * */ readonly REGULAR: EnumInstance<"UNRECOGNIZED" | "BUCKET_TYPE_UNSPECIFIED" | "REGULAR" | "FILESYSTEM">; /** * Object storage bucket that is mounted to an existing compute filesystem. * */ readonly FILESYSTEM: EnumInstance<"UNRECOGNIZED" | "BUCKET_TYPE_UNSPECIFIED" | "REGULAR" | "FILESYSTEM">; } /** Defines the runtime API for {@link BucketStatus_BucketType}. */ export type BucketStatus_BucketTypeClass = EnumClass<"UNRECOGNIZED" | "BUCKET_TYPE_UNSPECIFIED" | "REGULAR" | "FILESYSTEM"> & BucketStatus_BucketTypeValueMembers; /** Converts and creates {@link BucketStatus_BucketType} values. */ export declare const BucketStatus_BucketType: BucketStatus_BucketTypeClass; /** Represents the `nebius.storage.v1.Bucket` protobuf message. */ export interface Bucket { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.Bucket"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** Contains the `metadata` protobuf field. */ metadata?: ResourceMetadata | undefined; /** Contains the `spec` protobuf field. */ spec?: BucketSpec | undefined; /** Contains the `status` protobuf field. */ status?: BucketStatus | undefined; } /** Encodes, decodes, converts, and creates {@link Bucket} messages. */ export declare const Bucket: MessageFns; /** Represents the `nebius.storage.v1.BucketSpec` protobuf message. */ export interface BucketSpec { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.BucketSpec"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Supports transitions: * * disabled -> enabled * * disabled -> suspended * * enabled <-> suspended * */ versioningPolicy: VersioningPolicy; /** * Maximum bucket size. * Zero means unlimited. * Actual limit can be lower if customer doesn't have enough quota. * Real bucket size can go a little higher if customer writes too fast. * */ maxSizeBytes: Long; /** Contains the `lifecycle_configuration` protobuf field. */ lifecycleConfiguration?: LifecycleConfiguration | undefined; /** * Cross-origin resource sharing configuration. * */ cors?: CORSConfiguration | undefined; /** * Storage class to use by default for uploads to the bucket. It may be overridden by `x-amz-storage-class` header. * If not set - STANDARD is used as a default storage class. * */ defaultStorageClass: StorageClass; /** * Flag to force usage of default_storage_class, ignoring `x-amz-storage-class` header. * */ forceStorageClass: boolean; /** * Object audit logging specifies which requests must be logged - none, all or mutational only. * */ objectAuditLogging: BucketSpec_ObjectAuditLogging; /** * Bucket policy specifies granular permissions for a bucket. * */ bucketPolicy?: BucketPolicy | undefined; /** * Bucket type allows to create non-regular object storage buckets. * */ bucketType?: { $case: "filesystemBucket"; filesystemBucket: BucketSpec_FilesystemBucketType; } | undefined; } /** Encodes, decodes, converts, and creates {@link BucketSpec} messages. */ export declare const BucketSpec: MessageFns; /** Represents the `nebius.storage.v1.BucketSpec.FilesystemBucketType` protobuf message. */ export interface BucketSpec_FilesystemBucketType { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.BucketSpec.FilesystemBucketType"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Identifier of filesystem to be exposed via Object Storage API. * */ filesystemId: string; /** * Directory within the filesystem that will be used as a root for the bucket. * If not empty, it must be an absolute normalized path (no ., .., or doubled /). * Empty value means that the bucket will be mounted at the filesystem root (/). * */ directory: string; /** * UID that will be used for write operations to the filesystem. * By default, root user (UID=0, GID=0) is used. * */ uid: number; /** * GID that will be used for write operations to the filesystem. * By default, root user (UID=0, GID=0) is used. * */ gid: number; /** * Linux permissions that will be applied for uploaded files. * Permissions are specified in octal format (one to four octal numbers), e.g. "644" or "755". * The default value is 644 (rw-r--r--). * */ fileMode: string; /** * Linux permissions that will be applied for uploaded directories. * Permissions are specified in octal format (one to four octal numbers), e.g. "644" or "755". * The default value is 755 (rwxr-xr-x). * */ directoryMode: string; } /** Encodes, decodes, converts, and creates {@link BucketSpec_FilesystemBucketType} messages. */ export declare const BucketSpec_FilesystemBucketType: MessageFns; /** Represents the `nebius.storage.v1.BucketStatus` protobuf message. */ export interface BucketStatus { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.BucketStatus"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** Contains the `counters` protobuf field. */ counters: BucketCounters[]; /** Contains the `state` protobuf field. */ state: BucketStatus_State; /** Contains the `suspension_state` protobuf field. */ suspensionState: BucketStatus_SuspensionState; /** * The time when the bucket was deleted (or scheduled for deletion). * It resets to null if the bucket is undeleted. * */ deletedAt?: Dayjs | undefined; /** * The time when the bucket will be automatically purged in case it was soft-deleted. * */ purgeAt?: Dayjs | undefined; /** * The domain of the endpoint where the bucket can be accessed. It omits the scheme (HTTPS) and the port (443) * and contains only the FQDN address. * */ domainName: string; /** * The name of the region where the bucket is located for use with S3 clients, i.e. "eu-west1". * */ region: string; /** * Indicator flag showing whether the bucket has any BucketPolicy rule * that grants anonymous access to any object, prefix, or the entire bucket. * */ anonymousAccessEnabled: boolean; /** * Insecure endpoint mode shows whether plain HTTP (without TLS) is forbidden, allowed for traffic from the * same region or allowed from everywhere. * */ insecureEndpoint?: InsecureEndpoint | undefined; /** Contains the `bucket_type` protobuf field. */ bucketType: BucketStatus_BucketType; } /** Encodes, decodes, converts, and creates {@link BucketStatus} messages. */ export declare const BucketStatus: MessageFns; /** * Cross-origin resource sharing (CORS) configuration. * */ export interface CORSConfiguration { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.CORSConfiguration"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * CORS rules. * */ rules: CORSRule[]; } /** Encodes, decodes, converts, and creates {@link CORSConfiguration} messages. */ export declare const CORSConfiguration: MessageFns; /** Represents the `nebius.storage.v1.CORSRule` protobuf message. */ export interface CORSRule { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.CORSRule"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Optional rule identifier. * */ id?: string | undefined; /** * Headers that are allowed in a preflight request through the Access-Control-Request-Headers header * */ allowedHeaders: string[]; /** * The origins that you want to allow cross-domain requests from. Single wildcard * is allowed. * */ allowedOrigins: string[]; /** * HTTP methods CORS is allowed for: GET, PUT, POST, DELETE, HEAD. * */ allowedMethods: string[]; /** * Headers in the response that you want customers to be able to access from their applications. * */ exposeHeaders: string[]; /** * Time in seconds that your browser can cache the response for a preflight request as identified by the resource. * */ maxAgeSeconds?: number | undefined; } /** Encodes, decodes, converts, and creates {@link CORSRule} messages. */ export declare const CORSRule: MessageFns; /** * Defines where the plain HTTP endpoint is available. * */ export type InsecureEndpoint_Mode = EnumInstance<"UNRECOGNIZED" | "MODE_UNSPECIFIED" | "DISABLED" | "REGION_LOCAL" | "ALL">; /** Defines the static values of {@link InsecureEndpoint_Mode}. */ export interface InsecureEndpoint_ModeValueMembers { /** * Represents the `MODE_UNSPECIFIED` protobuf enum value. */ readonly MODE_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "MODE_UNSPECIFIED" | "DISABLED" | "REGION_LOCAL" | "ALL">; /** * Plain HTTP access is disabled. * */ readonly DISABLED: EnumInstance<"UNRECOGNIZED" | "MODE_UNSPECIFIED" | "DISABLED" | "REGION_LOCAL" | "ALL">; /** * Plain HTTP access is available only from the same region. * */ readonly REGION_LOCAL: EnumInstance<"UNRECOGNIZED" | "MODE_UNSPECIFIED" | "DISABLED" | "REGION_LOCAL" | "ALL">; /** * Plain HTTP access is available from any network. * */ readonly ALL: EnumInstance<"UNRECOGNIZED" | "MODE_UNSPECIFIED" | "DISABLED" | "REGION_LOCAL" | "ALL">; } /** Defines the runtime API for {@link InsecureEndpoint_Mode}. */ export type InsecureEndpoint_ModeClass = EnumClass<"UNRECOGNIZED" | "MODE_UNSPECIFIED" | "DISABLED" | "REGION_LOCAL" | "ALL"> & InsecureEndpoint_ModeValueMembers; /** Converts and creates {@link InsecureEndpoint_Mode} values. */ export declare const InsecureEndpoint_Mode: InsecureEndpoint_ModeClass; /** Represents the `nebius.storage.v1.InsecureEndpoint` protobuf message. */ export interface InsecureEndpoint { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.InsecureEndpoint"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Determines where the plain HTTP endpoint is available. * */ mode: InsecureEndpoint_Mode; } /** Encodes, decodes, converts, and creates {@link InsecureEndpoint} messages. */ export declare const InsecureEndpoint: MessageFns; /** Represents the `nebius.storage.v1.GetInventoryRequest` protobuf message. */ export interface GetInventoryRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.GetInventoryRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** Contains the `id` protobuf field. */ id: string; } /** Encodes, decodes, converts, and creates {@link GetInventoryRequest} messages. */ export declare const GetInventoryRequest: MessageFns; /** Represents the `nebius.storage.v1.ListInventoriesRequest` protobuf message. */ export interface ListInventoriesRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.ListInventoriesRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** Contains the `parent_id` protobuf field. */ parentId: string; /** Contains the `page_size` protobuf field. */ pageSize: Long; /** Contains the `page_token` protobuf field. */ pageToken: string; } /** Encodes, decodes, converts, and creates {@link ListInventoriesRequest} messages. */ export declare const ListInventoriesRequest: MessageFns; /** Represents the `nebius.storage.v1.ListInventoriesResponse` protobuf message. */ export interface ListInventoriesResponse { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.ListInventoriesResponse"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** Contains the `items` protobuf field. */ items: Inventory[]; /** Contains the `next_page_token` protobuf field. */ nextPageToken: string; } /** Encodes, decodes, converts, and creates {@link ListInventoriesResponse} messages. */ export declare const ListInventoriesResponse: MessageFns; /** Represents the `nebius.storage.v1.CreateInventoryRequest` protobuf message. */ export interface CreateInventoryRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.CreateInventoryRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** Contains the `metadata` protobuf field. */ metadata?: ResourceMetadata | undefined; /** Contains the `spec` protobuf field. */ spec?: InventorySpec | undefined; } /** Encodes, decodes, converts, and creates {@link CreateInventoryRequest} messages. */ export declare const CreateInventoryRequest: MessageFns; /** Represents the `nebius.storage.v1.UpdateInventoryRequest` protobuf message. */ export interface UpdateInventoryRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.UpdateInventoryRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** Contains the `metadata` protobuf field. */ metadata?: ResourceMetadata | undefined; /** Contains the `spec` protobuf field. */ spec?: InventorySpec | undefined; } /** Encodes, decodes, converts, and creates {@link UpdateInventoryRequest} messages. */ export declare const UpdateInventoryRequest: MessageFns; /** Represents the `nebius.storage.v1.DeleteInventoryRequest` protobuf message. */ export interface DeleteInventoryRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.DeleteInventoryRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** Contains the `id` protobuf field. */ id: string; } /** Encodes, decodes, converts, and creates {@link DeleteInventoryRequest} messages. */ export declare const DeleteInventoryRequest: MessageFns; /** * Defines the gRPC methods for the `nebius.storage.v1.InventoryService` service. */ export type InventoryServiceServiceDescription = typeof InventoryServiceServiceDescription; /** * Describes the gRPC methods for the `nebius.storage.v1.InventoryService` service. */ export declare const InventoryServiceServiceDescription: { readonly get: { readonly path: "/nebius.storage.v1.InventoryService/Get"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetInventoryRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => GetInventoryRequest; readonly responseSerialize: (value: Inventory) => Buffer; readonly responseDeserialize: (value: Buffer) => Inventory; }; readonly getByName: { readonly path: "/nebius.storage.v1.InventoryService/GetByName"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetByNameRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => GetByNameRequest; readonly responseSerialize: (value: Inventory) => Buffer; readonly responseDeserialize: (value: Buffer) => Inventory; }; readonly list: { readonly path: "/nebius.storage.v1.InventoryService/List"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListInventoriesRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => ListInventoriesRequest; readonly responseSerialize: (value: ListInventoriesResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListInventoriesResponse; }; readonly create: { readonly path: "/nebius.storage.v1.InventoryService/Create"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: CreateInventoryRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => CreateInventoryRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; readonly update: { readonly path: "/nebius.storage.v1.InventoryService/Update"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: UpdateInventoryRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: true; readonly requestDeserialize: (value: Buffer) => UpdateInventoryRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; readonly delete: { readonly path: "/nebius.storage.v1.InventoryService/Delete"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: DeleteInventoryRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => DeleteInventoryRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; }; /** * Handles server calls for the `nebius.storage.v1.InventoryService` service. */ export interface InventoryServiceServer extends UntypedServiceImplementation { /** * Handles the `Get` RPC. */ get: handleUnaryCall; /** * Handles the `GetByName` RPC. */ getByName: handleUnaryCall; /** * Handles the `List` RPC. */ list: handleUnaryCall; /** * Handles the `Create` RPC. */ create: handleUnaryCall; /** * Handles the `Update` RPC. */ update: handleUnaryCall; /** * Handles the `Delete` RPC. */ delete: handleUnaryCall; } /** * Defines the low-level gRPC client for the `nebius.storage.v1.InventoryService` service. */ export interface InventoryServiceBaseClient extends Client { /** * Calls the `Get` RPC. */ get(request: GetInventoryRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Inventory) => void): ClientUnaryCall; /** * Calls the `GetByName` RPC. */ getByName(request: GetByNameRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Inventory) => void): ClientUnaryCall; /** * Calls the `List` RPC. */ list(request: ListInventoriesRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: ListInventoriesResponse) => void): ClientUnaryCall; /** * Calls the `Create` RPC. */ create(request: CreateInventoryRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Operation) => void): ClientUnaryCall; /** * Calls the `Update` RPC. */ update(request: UpdateInventoryRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Operation) => void): ClientUnaryCall; /** * Calls the `Delete` RPC. */ delete(request: DeleteInventoryRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Operation) => void): ClientUnaryCall; } /** * Creates low-level gRPC clients for the `nebius.storage.v1.InventoryService` service. */ export declare const InventoryServiceBaseClient: { /** Creates a low-level client for the service address. */ new (address: string, credentials: ChannelCredentials, options?: Partial): InventoryServiceBaseClient; /** Contains the gRPC service description. */ service: typeof InventoryServiceServiceDescription; /** Contains the fully qualified protobuf service name. */ serviceName: string; }; /** * InventoryService manages bucket inventory configurations. * */ export interface InventoryService { /** Contains the fully qualified protobuf service name. */ $type: "nebius.storage.v1.InventoryService"; /** * Calls the `Get` RPC. */ get(request: GetInventoryRequest): SDKRequestClass; /** * Calls the `Get` RPC. */ get(request: GetInventoryRequest, metadata: Metadata): SDKRequestClass; /** * Calls the `Get` RPC. */ get(request: GetInventoryRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Calls the `GetByName` RPC. */ getByName(request: GetByNameRequest): SDKRequestClass; /** * Calls the `GetByName` RPC. */ getByName(request: GetByNameRequest, metadata: Metadata): SDKRequestClass; /** * Calls the `GetByName` RPC. */ getByName(request: GetByNameRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Calls the `List` RPC. */ list(request: ListInventoriesRequest): SDKRequestClass; /** * Calls the `List` RPC. */ list(request: ListInventoriesRequest, metadata: Metadata): SDKRequestClass; /** * Calls the `List` RPC. */ list(request: ListInventoriesRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Calls the `Create` RPC. */ create(request: CreateInventoryRequest): SDKRequestClass>; /** * Calls the `Create` RPC. */ create(request: CreateInventoryRequest, metadata: Metadata): SDKRequestClass>; /** * Calls the `Create` RPC. */ create(request: CreateInventoryRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Calls the `Update` RPC. */ update(request: UpdateInventoryRequest): SDKRequestClass>; /** * Calls the `Update` RPC. */ update(request: UpdateInventoryRequest, metadata: Metadata): SDKRequestClass>; /** * Calls the `Update` RPC. */ update(request: UpdateInventoryRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Calls the `Delete` RPC. */ delete(request: DeleteInventoryRequest): SDKRequestClass>; /** * Calls the `Delete` RPC. */ delete(request: DeleteInventoryRequest, metadata: Metadata): SDKRequestClass>; /** * Calls the `Delete` RPC. */ delete(request: DeleteInventoryRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; } /** * Calls the `nebius.storage.v1.InventoryService` service through the Nebius SDK. */ export declare class InventoryService implements InventoryService { private sdk; $type: "nebius.storage.v1.InventoryService"; private addr; private spec; private apiServiceName; /** Creates a client that uses the SDK service address. */ constructor(sdk: SDKInterface); /** Returns the operation service for this service address. */ getOperationService(): OperationService; /** * Calls the `Get` RPC. */ get(request: GetInventoryRequest): SDKRequestClass; /** * Calls the `Get` RPC. */ get(request: GetInventoryRequest, metadata: Metadata): SDKRequestClass; /** * Calls the `Get` RPC. */ get(request: GetInventoryRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Calls the `GetByName` RPC. */ getByName(request: GetByNameRequest): SDKRequestClass; /** * Calls the `GetByName` RPC. */ getByName(request: GetByNameRequest, metadata: Metadata): SDKRequestClass; /** * Calls the `GetByName` RPC. */ getByName(request: GetByNameRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Calls the `List` RPC. */ list(request: ListInventoriesRequest): SDKRequestClass; /** * Calls the `List` RPC. */ list(request: ListInventoriesRequest, metadata: Metadata): SDKRequestClass; /** * Calls the `List` RPC. */ list(request: ListInventoriesRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Calls the `Create` RPC. */ create(request: CreateInventoryRequest): SDKRequestClass>; /** * Calls the `Create` RPC. */ create(request: CreateInventoryRequest, metadata: Metadata): SDKRequestClass>; /** * Calls the `Create` RPC. */ create(request: CreateInventoryRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Calls the `Update` RPC. */ update(request: UpdateInventoryRequest): SDKRequestClass>; /** * Calls the `Update` RPC. */ update(request: UpdateInventoryRequest, metadata: Metadata): SDKRequestClass>; /** * Calls the `Update` RPC. */ update(request: UpdateInventoryRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Calls the `Delete` RPC. */ delete(request: DeleteInventoryRequest): SDKRequestClass>; /** * Calls the `Delete` RPC. */ delete(request: DeleteInventoryRequest, metadata: Metadata): SDKRequestClass>; /** * Calls the `Delete` RPC. */ delete(request: DeleteInventoryRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; } /** * Represents the `nebius.storage.v1.InventorySpec.OutputFormat` protobuf enum. */ export type InventorySpec_OutputFormat = EnumInstance<"UNRECOGNIZED" | "OUTPUT_FORMAT_UNSPECIFIED" | "CSV_GZIP" | "PARQUET_SNAPPY">; /** Defines the static values of {@link InventorySpec_OutputFormat}. */ export interface InventorySpec_OutputFormatValueMembers { /** * Represents the `OUTPUT_FORMAT_UNSPECIFIED` protobuf enum value. */ readonly OUTPUT_FORMAT_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "OUTPUT_FORMAT_UNSPECIFIED" | "CSV_GZIP" | "PARQUET_SNAPPY">; /** * CSV compressed with GZIP. * */ readonly CSV_GZIP: EnumInstance<"UNRECOGNIZED" | "OUTPUT_FORMAT_UNSPECIFIED" | "CSV_GZIP" | "PARQUET_SNAPPY">; /** * Parquet compressed with Snappy. * */ readonly PARQUET_SNAPPY: EnumInstance<"UNRECOGNIZED" | "OUTPUT_FORMAT_UNSPECIFIED" | "CSV_GZIP" | "PARQUET_SNAPPY">; } /** Defines the runtime API for {@link InventorySpec_OutputFormat}. */ export type InventorySpec_OutputFormatClass = EnumClass<"UNRECOGNIZED" | "OUTPUT_FORMAT_UNSPECIFIED" | "CSV_GZIP" | "PARQUET_SNAPPY"> & InventorySpec_OutputFormatValueMembers; /** Converts and creates {@link InventorySpec_OutputFormat} values. */ export declare const InventorySpec_OutputFormat: InventorySpec_OutputFormatClass; /** * Represents the `nebius.storage.v1.InventorySpec.OptionalField` protobuf enum. */ export type InventorySpec_OptionalField = EnumInstance<"UNRECOGNIZED" | "OPTIONAL_FIELD_UNSPECIFIED" | "LAST_ACCESS" | "CHECKSUM_ALGORITHMS" | "INTELLIGENT_TIER" | "IS_MULTIPART_UPLOAD" | "LIFECYCLE_EXPIRATION" | "TAGS">; /** Defines the static values of {@link InventorySpec_OptionalField}. */ export interface InventorySpec_OptionalFieldValueMembers { /** * Represents the `OPTIONAL_FIELD_UNSPECIFIED` protobuf enum value. */ readonly OPTIONAL_FIELD_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "OPTIONAL_FIELD_UNSPECIFIED" | "LAST_ACCESS" | "CHECKSUM_ALGORITHMS" | "INTELLIGENT_TIER" | "IS_MULTIPART_UPLOAD" | "LIFECYCLE_EXPIRATION" | "TAGS">; /** * Timestamp of the last access. * */ readonly LAST_ACCESS: EnumInstance<"UNRECOGNIZED" | "OPTIONAL_FIELD_UNSPECIFIED" | "LAST_ACCESS" | "CHECKSUM_ALGORITHMS" | "INTELLIGENT_TIER" | "IS_MULTIPART_UPLOAD" | "LIFECYCLE_EXPIRATION" | "TAGS">; /** * Checksum algorithms used. * */ readonly CHECKSUM_ALGORITHMS: EnumInstance<"UNRECOGNIZED" | "OPTIONAL_FIELD_UNSPECIFIED" | "LAST_ACCESS" | "CHECKSUM_ALGORITHMS" | "INTELLIGENT_TIER" | "IS_MULTIPART_UPLOAD" | "LIFECYCLE_EXPIRATION" | "TAGS">; /** * Current intelligent tier (for Intelligent Storage Class). * */ readonly INTELLIGENT_TIER: EnumInstance<"UNRECOGNIZED" | "OPTIONAL_FIELD_UNSPECIFIED" | "LAST_ACCESS" | "CHECKSUM_ALGORITHMS" | "INTELLIGENT_TIER" | "IS_MULTIPART_UPLOAD" | "LIFECYCLE_EXPIRATION" | "TAGS">; /** * True for multipart uploads, false for simple objects. * */ readonly IS_MULTIPART_UPLOAD: EnumInstance<"UNRECOGNIZED" | "OPTIONAL_FIELD_UNSPECIFIED" | "LAST_ACCESS" | "CHECKSUM_ALGORITHMS" | "INTELLIGENT_TIER" | "IS_MULTIPART_UPLOAD" | "LIFECYCLE_EXPIRATION" | "TAGS">; /** * Timestamp of lifecycle expiration. * */ readonly LIFECYCLE_EXPIRATION: EnumInstance<"UNRECOGNIZED" | "OPTIONAL_FIELD_UNSPECIFIED" | "LAST_ACCESS" | "CHECKSUM_ALGORITHMS" | "INTELLIGENT_TIER" | "IS_MULTIPART_UPLOAD" | "LIFECYCLE_EXPIRATION" | "TAGS">; /** * Object tags. * */ readonly TAGS: EnumInstance<"UNRECOGNIZED" | "OPTIONAL_FIELD_UNSPECIFIED" | "LAST_ACCESS" | "CHECKSUM_ALGORITHMS" | "INTELLIGENT_TIER" | "IS_MULTIPART_UPLOAD" | "LIFECYCLE_EXPIRATION" | "TAGS">; } /** Defines the runtime API for {@link InventorySpec_OptionalField}. */ export type InventorySpec_OptionalFieldClass = EnumClass<"UNRECOGNIZED" | "OPTIONAL_FIELD_UNSPECIFIED" | "LAST_ACCESS" | "CHECKSUM_ALGORITHMS" | "INTELLIGENT_TIER" | "IS_MULTIPART_UPLOAD" | "LIFECYCLE_EXPIRATION" | "TAGS"> & InventorySpec_OptionalFieldValueMembers; /** Converts and creates {@link InventorySpec_OptionalField} values. */ export declare const InventorySpec_OptionalField: InventorySpec_OptionalFieldClass; /** * Represents the `nebius.storage.v1.InventorySpec.Schedule` protobuf enum. */ export type InventorySpec_Schedule = EnumInstance<"UNRECOGNIZED" | "SCHEDULE_UNSPECIFIED" | "DAILY" | "WEEKLY">; /** Defines the static values of {@link InventorySpec_Schedule}. */ export interface InventorySpec_ScheduleValueMembers { /** * Represents the `SCHEDULE_UNSPECIFIED` protobuf enum value. */ readonly SCHEDULE_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "SCHEDULE_UNSPECIFIED" | "DAILY" | "WEEKLY">; /** * Run once a day. * */ readonly DAILY: EnumInstance<"UNRECOGNIZED" | "SCHEDULE_UNSPECIFIED" | "DAILY" | "WEEKLY">; /** * Run once a week. * */ readonly WEEKLY: EnumInstance<"UNRECOGNIZED" | "SCHEDULE_UNSPECIFIED" | "DAILY" | "WEEKLY">; } /** Defines the runtime API for {@link InventorySpec_Schedule}. */ export type InventorySpec_ScheduleClass = EnumClass<"UNRECOGNIZED" | "SCHEDULE_UNSPECIFIED" | "DAILY" | "WEEKLY"> & InventorySpec_ScheduleValueMembers; /** Converts and creates {@link InventorySpec_Schedule} values. */ export declare const InventorySpec_Schedule: InventorySpec_ScheduleClass; /** * Represents the `nebius.storage.v1.InventoryStatus.Error` protobuf enum. */ export type InventoryStatus_Error = EnumInstance<"UNRECOGNIZED" | "NO_ERROR" | "DESTINATION_BUCKET_NOT_FOUND" | "PERMISSION_DENIED" | "INVALID_INTENT" | "QUOTA_EXCEEDED">; /** Defines the static values of {@link InventoryStatus_Error}. */ export interface InventoryStatus_ErrorValueMembers { /** * No error. * */ readonly NO_ERROR: EnumInstance<"UNRECOGNIZED" | "NO_ERROR" | "DESTINATION_BUCKET_NOT_FOUND" | "PERMISSION_DENIED" | "INVALID_INTENT" | "QUOTA_EXCEEDED">; /** * Destination bucket not found. * */ readonly DESTINATION_BUCKET_NOT_FOUND: EnumInstance<"UNRECOGNIZED" | "NO_ERROR" | "DESTINATION_BUCKET_NOT_FOUND" | "PERMISSION_DENIED" | "INVALID_INTENT" | "QUOTA_EXCEEDED">; /** * Permission denied: you don't have permission to the destination bucket. * */ readonly PERMISSION_DENIED: EnumInstance<"UNRECOGNIZED" | "NO_ERROR" | "DESTINATION_BUCKET_NOT_FOUND" | "PERMISSION_DENIED" | "INVALID_INTENT" | "QUOTA_EXCEEDED">; /** * Intent is invalid, does not exist or expired. * */ readonly INVALID_INTENT: EnumInstance<"UNRECOGNIZED" | "NO_ERROR" | "DESTINATION_BUCKET_NOT_FOUND" | "PERMISSION_DENIED" | "INVALID_INTENT" | "QUOTA_EXCEEDED">; /** * Quota exceeded in destination. * */ readonly QUOTA_EXCEEDED: EnumInstance<"UNRECOGNIZED" | "NO_ERROR" | "DESTINATION_BUCKET_NOT_FOUND" | "PERMISSION_DENIED" | "INVALID_INTENT" | "QUOTA_EXCEEDED">; } /** Defines the runtime API for {@link InventoryStatus_Error}. */ export type InventoryStatus_ErrorClass = EnumClass<"UNRECOGNIZED" | "NO_ERROR" | "DESTINATION_BUCKET_NOT_FOUND" | "PERMISSION_DENIED" | "INVALID_INTENT" | "QUOTA_EXCEEDED"> & InventoryStatus_ErrorValueMembers; /** Converts and creates {@link InventoryStatus_Error} values. */ export declare const InventoryStatus_Error: InventoryStatus_ErrorClass; /** * Inventory configures periodic generation of an object listing for a bucket. * */ export interface Inventory { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.Inventory"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** Contains the `metadata` protobuf field. */ metadata?: ResourceMetadata | undefined; /** Contains the `spec` protobuf field. */ spec?: InventorySpec | undefined; /** Contains the `status` protobuf field. */ status?: InventoryStatus | undefined; } /** Encodes, decodes, converts, and creates {@link Inventory} messages. */ export declare const Inventory: MessageFns; /** * Desired configuration of an inventory. * */ export interface InventorySpec { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.InventorySpec"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Enable or disable inventory generation. * */ enabled: boolean; /** * Prefix to filter objects in the source bucket. * */ sourcePrefix: string; /** * ID of the destination bucket. * */ destinationBucketId: string; /** * Prefix under which bucket inventory will be stored in the destination bucket. * */ destinationPrefix: string; /** * Inventory format. * */ outputFormat: InventorySpec_OutputFormat; /** * Include noncurrent versions in inventory if set to true. * */ noncurrentVersions: boolean; /** * Optional fields to include in inventory. * */ optionalFields: InventorySpec_OptionalField[]; /** * How often to generate the inventory. * */ schedule: InventorySpec_Schedule; } /** Encodes, decodes, converts, and creates {@link InventorySpec} messages. */ export declare const InventorySpec: MessageFns; /** Represents the `nebius.storage.v1.InventoryStatus` protobuf message. */ export interface InventoryStatus { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.InventoryStatus"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Timestamp of the last successful run. * */ lastSuccess?: Dayjs | undefined; /** * Error code, if the last run was not successful, otherwise NO_ERROR. * */ errorCode: InventoryStatus_Error; } /** Encodes, decodes, converts, and creates {@link InventoryStatus} messages. */ export declare const InventoryStatus: MessageFns; /** * Represents the `nebius.storage.v1.LifecycleRule.Status` protobuf enum. */ export type LifecycleRule_Status = EnumInstance<"UNRECOGNIZED" | "STATUS_UNSPECIFIED" | "ENABLED" | "DISABLED">; /** Defines the static values of {@link LifecycleRule_Status}. */ export interface LifecycleRule_StatusValueMembers { /** * Represents the `STATUS_UNSPECIFIED` protobuf enum value. */ readonly STATUS_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "STATUS_UNSPECIFIED" | "ENABLED" | "DISABLED">; /** * Represents the `ENABLED` protobuf enum value. */ readonly ENABLED: EnumInstance<"UNRECOGNIZED" | "STATUS_UNSPECIFIED" | "ENABLED" | "DISABLED">; /** * Represents the `DISABLED` protobuf enum value. */ readonly DISABLED: EnumInstance<"UNRECOGNIZED" | "STATUS_UNSPECIFIED" | "ENABLED" | "DISABLED">; } /** Defines the runtime API for {@link LifecycleRule_Status}. */ export type LifecycleRule_StatusClass = EnumClass<"UNRECOGNIZED" | "STATUS_UNSPECIFIED" | "ENABLED" | "DISABLED"> & LifecycleRule_StatusValueMembers; /** Converts and creates {@link LifecycleRule_Status} values. */ export declare const LifecycleRule_Status: LifecycleRule_StatusClass; /** * Represents the `nebius.storage.v1.LifecycleAccessFilter.Condition.Type` protobuf enum. */ export type LifecycleAccessFilter_Condition_Type = EnumInstance<"UNRECOGNIZED" | "TYPE_UNSPECIFIED" | "INCLUDE" | "EXCLUDE">; /** Defines the static values of {@link LifecycleAccessFilter_Condition_Type}. */ export interface LifecycleAccessFilter_Condition_TypeValueMembers { /** * Represents the `TYPE_UNSPECIFIED` protobuf enum value. */ readonly TYPE_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "TYPE_UNSPECIFIED" | "INCLUDE" | "EXCLUDE">; /** * If an include type condition is the first condition that the request match, the request will be included in * `days_since_last_access` calculation. * */ readonly INCLUDE: EnumInstance<"UNRECOGNIZED" | "TYPE_UNSPECIFIED" | "INCLUDE" | "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. * */ readonly EXCLUDE: EnumInstance<"UNRECOGNIZED" | "TYPE_UNSPECIFIED" | "INCLUDE" | "EXCLUDE">; } /** Defines the runtime API for {@link LifecycleAccessFilter_Condition_Type}. */ export type LifecycleAccessFilter_Condition_TypeClass = EnumClass<"UNRECOGNIZED" | "TYPE_UNSPECIFIED" | "INCLUDE" | "EXCLUDE"> & LifecycleAccessFilter_Condition_TypeValueMembers; /** Converts and creates {@link LifecycleAccessFilter_Condition_Type} values. */ export declare const LifecycleAccessFilter_Condition_Type: LifecycleAccessFilter_Condition_TypeClass; /** * Represents the `nebius.storage.v1.LifecycleAccessFilter.Condition.Method` protobuf enum. */ export type LifecycleAccessFilter_Condition_Method = EnumInstance<"UNRECOGNIZED" | "METHOD_UNSPECIFIED" | "GET_OBJECT" | "HEAD_OBJECT" | "GET_OBJECT_TAGGING" | "COPY_OBJECT" | "UPLOAD_PART_COPY">; /** Defines the static values of {@link LifecycleAccessFilter_Condition_Method}. */ export interface LifecycleAccessFilter_Condition_MethodValueMembers { /** * Represents the `METHOD_UNSPECIFIED` protobuf enum value. */ readonly METHOD_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "METHOD_UNSPECIFIED" | "GET_OBJECT" | "HEAD_OBJECT" | "GET_OBJECT_TAGGING" | "COPY_OBJECT" | "UPLOAD_PART_COPY">; /** * Represents the `GET_OBJECT` protobuf enum value. */ readonly GET_OBJECT: EnumInstance<"UNRECOGNIZED" | "METHOD_UNSPECIFIED" | "GET_OBJECT" | "HEAD_OBJECT" | "GET_OBJECT_TAGGING" | "COPY_OBJECT" | "UPLOAD_PART_COPY">; /** * Represents the `HEAD_OBJECT` protobuf enum value. */ readonly HEAD_OBJECT: EnumInstance<"UNRECOGNIZED" | "METHOD_UNSPECIFIED" | "GET_OBJECT" | "HEAD_OBJECT" | "GET_OBJECT_TAGGING" | "COPY_OBJECT" | "UPLOAD_PART_COPY">; /** * Represents the `GET_OBJECT_TAGGING` protobuf enum value. */ readonly GET_OBJECT_TAGGING: EnumInstance<"UNRECOGNIZED" | "METHOD_UNSPECIFIED" | "GET_OBJECT" | "HEAD_OBJECT" | "GET_OBJECT_TAGGING" | "COPY_OBJECT" | "UPLOAD_PART_COPY">; /** * Copy object method reads the source object. * We account for those operations as source object accesses when calculating `days_since_last_access` for source object. * */ readonly COPY_OBJECT: EnumInstance<"UNRECOGNIZED" | "METHOD_UNSPECIFIED" | "GET_OBJECT" | "HEAD_OBJECT" | "GET_OBJECT_TAGGING" | "COPY_OBJECT" | "UPLOAD_PART_COPY">; /** * Upload part copy method reads the source object. * We account for those operations as source object accesses when calculating `days_since_last_access` for source object. * */ readonly UPLOAD_PART_COPY: EnumInstance<"UNRECOGNIZED" | "METHOD_UNSPECIFIED" | "GET_OBJECT" | "HEAD_OBJECT" | "GET_OBJECT_TAGGING" | "COPY_OBJECT" | "UPLOAD_PART_COPY">; } /** Defines the runtime API for {@link LifecycleAccessFilter_Condition_Method}. */ export type LifecycleAccessFilter_Condition_MethodClass = EnumClass<"UNRECOGNIZED" | "METHOD_UNSPECIFIED" | "GET_OBJECT" | "HEAD_OBJECT" | "GET_OBJECT_TAGGING" | "COPY_OBJECT" | "UPLOAD_PART_COPY"> & LifecycleAccessFilter_Condition_MethodValueMembers; /** Converts and creates {@link LifecycleAccessFilter_Condition_Method} values. */ export declare const LifecycleAccessFilter_Condition_Method: LifecycleAccessFilter_Condition_MethodClass; /** * The lifecycle configuration consists of one or more rules. * An Lifecycle configuration can have up to 1,000 rules. * Each rule consists of the following: * - A filter identifying a subset of objects to which the rule applies. * The filter can be based on a key name prefix, object size, or any combination of these. * - A status indicating whether the rule is currently active. * - One or more lifecycle expiration actions that you want to be performed on the objects * identified by the filter. If the state of your bucket is versioning-enabled or versioning-suspended * (bucket.spec.versioning_policy equals to ENABLED or SUSPENDED) you can have many versions of the same * object (one current version and zero or more noncurrent versions). The system provides predefined actions * that you can specify for current and noncurrent object versions. * */ export interface LifecycleConfiguration { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.LifecycleConfiguration"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** Contains the `rules` protobuf field. */ rules: LifecycleRule[]; /** * Specifies which requests are included in `days_since_last_access` calculations for all transition rules. * */ lastAccessFilter?: LifecycleAccessFilter | undefined; } /** Encodes, decodes, converts, and creates {@link LifecycleConfiguration} messages. */ export declare const LifecycleConfiguration: MessageFns; /** Represents the `nebius.storage.v1.LifecycleRule` protobuf message. */ export interface LifecycleRule { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.LifecycleRule"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Unique identifier for the rule per configuration. * The value cannot be longer than 255 characters. * */ id: string; /** Contains the `status` protobuf field. */ status: LifecycleRule_Status; /** * The Filter is used to identify objects that a Lifecycle Rule applies to. * The Lifecycle Rule will apply to any object matching all of the predicates * configured inside (using logical AND). * */ filter?: LifecycleFilter | undefined; /** * Specifies the expiration for the lifecycle of the object in the form of date, days and, * whether the object has a delete marker. * */ expiration?: LifecycleExpiration | undefined; /** * Specifies when noncurrent object versions expire. * It works only on a bucket that has versioning enabled (or suspended). * */ noncurrentVersionExpiration?: LifecycleNoncurrentVersionExpiration | undefined; /** * Specifies the days since the initiation of an incomplete multipart upload that * the system will wait before permanently removing all parts of the upload. * */ abortIncompleteMultipartUpload?: LifecycleAbortIncompleteMultipartUpload | undefined; /** * Specifies the transition for the lifecycle of an object in the form of date or days and * target storage class to transit object to. * */ transition?: LifecycleTransition | undefined; /** * Specifies the transition for the lifecycle of a noncurrent object. * It works only on a bucket that has versioning enabled (or suspended). * */ noncurrentVersionTransition?: LifecycleNoncurrentVersionTransition | undefined; } /** Encodes, decodes, converts, and creates {@link LifecycleRule} messages. */ export declare const LifecycleRule: MessageFns; /** Represents the `nebius.storage.v1.LifecycleFilter` protobuf message. */ export interface LifecycleFilter { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.LifecycleFilter"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Prefix identifying one or more objects to which the rule applies. * If prefix is empty, the rule applies to all objects in the bucket. * */ prefix: string; /** * Minimum object size to which the rule applies. * */ objectSizeGreaterThanBytes: Long; /** * Maximum object size to which the rule applies. * */ objectSizeLessThanBytes: Long; /** * Tags to filter objects by their tagging. Rule applies only to objects that * match all tags in a filter. * */ tags: LifecycleFilter_Tag[]; } /** Encodes, decodes, converts, and creates {@link LifecycleFilter} messages. */ export declare const LifecycleFilter: MessageFns; /** Represents the `nebius.storage.v1.LifecycleFilter.Tag` protobuf message. */ export interface LifecycleFilter_Tag { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.LifecycleFilter.Tag"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** Contains the `key` protobuf field. */ key: string; /** Contains the `value` protobuf field. */ value: string; } /** Encodes, decodes, converts, and creates {@link LifecycleFilter_Tag} messages. */ export declare const LifecycleFilter_Tag: MessageFns; /** * Specifies which requests are included in `days_since_last_access` calculations. * */ export interface LifecycleAccessFilter { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.LifecycleAccessFilter"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * A request is included in `days_since_last_access` calculations if: * - The first condition matching the request has `INCLUDE` type. * OR * - The request doesn't match any conditions * */ conditions: LifecycleAccessFilter_Condition[]; } /** Encodes, decodes, converts, and creates {@link LifecycleAccessFilter} messages. */ export declare const LifecycleAccessFilter: MessageFns; /** Represents the `nebius.storage.v1.LifecycleAccessFilter.Condition` protobuf message. */ export interface LifecycleAccessFilter_Condition { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.LifecycleAccessFilter.Condition"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** Contains the `type` protobuf field. */ type: LifecycleAccessFilter_Condition_Type; /** * The s3 methods to match. * An empty list matches all methods * */ methods: LifecycleAccessFilter_Condition_Method[]; /** * User agents to match. Condition is satisfied if the request's user agent contains any of these substrings. * An empty list matches all user agents. * */ userAgents: string[]; } /** Encodes, decodes, converts, and creates {@link LifecycleAccessFilter_Condition} messages. */ export declare const LifecycleAccessFilter_Condition: MessageFns; /** Represents the `nebius.storage.v1.LifecycleExpiration` protobuf message. */ export interface LifecycleExpiration { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.LifecycleExpiration"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Indicates whether the system will remove a "delete marker" with no noncurrent versions. * If set to true, the "delete marker" will be permanently removed. * If set to false the policy takes no action. * This cannot be specified with Days or Date in a LifecycleExpiration Policy. * */ expiredObjectDeleteMarker: boolean; /** Contains the selected value for the `expired_with` protobuf oneof. */ expiredWith?: { $case: "date"; date: Dayjs; } | { $case: "days"; days: number; } | undefined; } /** Encodes, decodes, converts, and creates {@link LifecycleExpiration} messages. */ export declare const LifecycleExpiration: MessageFns; /** Represents the `nebius.storage.v1.LifecycleNoncurrentVersionExpiration` protobuf message. */ export interface LifecycleNoncurrentVersionExpiration { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.LifecycleNoncurrentVersionExpiration"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Specifies how many noncurrent versions the system will retain. * */ newerNoncurrentVersions?: number | undefined; /** * Specifies the number of days an object is noncurrent before the system will expire it. * */ noncurrentDays: number; } /** Encodes, decodes, converts, and creates {@link LifecycleNoncurrentVersionExpiration} messages. */ export declare const LifecycleNoncurrentVersionExpiration: MessageFns; /** Represents the `nebius.storage.v1.LifecycleAbortIncompleteMultipartUpload` protobuf message. */ export interface LifecycleAbortIncompleteMultipartUpload { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.LifecycleAbortIncompleteMultipartUpload"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Specifies the days since the initiation of an incomplete multipart upload that * the system will wait before permanently removing all parts of the upload. * */ daysAfterInitiation: number; } /** Encodes, decodes, converts, and creates {@link LifecycleAbortIncompleteMultipartUpload} messages. */ export declare const LifecycleAbortIncompleteMultipartUpload: MessageFns; /** Represents the `nebius.storage.v1.LifecycleTransition` protobuf message. */ export interface LifecycleTransition { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.LifecycleTransition"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Target storage class to transit to. * */ storageClass: StorageClass; /** Contains the selected value for the `transited_with` protobuf oneof. */ transitedWith?: { $case: "date"; date: Dayjs; } | { $case: "days"; days: number; } | { $case: "daysSinceLastAccess"; daysSinceLastAccess: number; } | undefined; } /** Encodes, decodes, converts, and creates {@link LifecycleTransition} messages. */ export declare const LifecycleTransition: MessageFns; /** Represents the `nebius.storage.v1.LifecycleNoncurrentVersionTransition` protobuf message. */ export interface LifecycleNoncurrentVersionTransition { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.LifecycleNoncurrentVersionTransition"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Specifies how many noncurrent versions the system will retain without transition. * */ newerNoncurrentVersions?: number | undefined; /** * Specifies the number of days an object is noncurrent before the system will transit it. * */ noncurrentDays: number; /** * Target storage class to transit to. * */ storageClass: StorageClass; } /** Encodes, decodes, converts, and creates {@link LifecycleNoncurrentVersionTransition} messages. */ export declare const LifecycleNoncurrentVersionTransition: MessageFns; /** Represents the `nebius.storage.v1.GetTransferRequest` protobuf message. */ export interface GetTransferRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.GetTransferRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** Contains the `id` protobuf field. */ id: string; } /** Encodes, decodes, converts, and creates {@link GetTransferRequest} messages. */ export declare const GetTransferRequest: MessageFns; /** Represents the `nebius.storage.v1.ListTransfersRequest` protobuf message. */ export interface ListTransfersRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.ListTransfersRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Represents the container ID. * */ parentId: string; /** * Specifies the maximum number of items to return in the response. Default: 10. * */ pageSize: Long; /** * Token for pagination, allowing the retrieval of the next set of results. * */ pageToken: string; } /** Encodes, decodes, converts, and creates {@link ListTransfersRequest} messages. */ export declare const ListTransfersRequest: MessageFns; /** Represents the `nebius.storage.v1.ListTransfersResponse` protobuf message. */ export interface ListTransfersResponse { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.ListTransfersResponse"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * List of transfers returned in the response. * */ items: Transfer[]; /** * Token for pagination, indicating the next set of results can be retrieved using this token. * */ nextPageToken: string; } /** Encodes, decodes, converts, and creates {@link ListTransfersResponse} messages. */ export declare const ListTransfersResponse: MessageFns; /** Represents the `nebius.storage.v1.CreateTransferRequest` protobuf message. */ export interface CreateTransferRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.CreateTransferRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** Contains the `metadata` protobuf field. */ metadata?: ResourceMetadata | undefined; /** Contains the `spec` protobuf field. */ spec?: TransferSpec | undefined; } /** Encodes, decodes, converts, and creates {@link CreateTransferRequest} messages. */ export declare const CreateTransferRequest: MessageFns; /** Represents the `nebius.storage.v1.UpdateTransferRequest` protobuf message. */ export interface UpdateTransferRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.UpdateTransferRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** Contains the `metadata` protobuf field. */ metadata?: ResourceMetadata | undefined; /** Contains the `spec` protobuf field. */ spec?: TransferSpec | undefined; } /** Encodes, decodes, converts, and creates {@link UpdateTransferRequest} messages. */ export declare const UpdateTransferRequest: MessageFns; /** Represents the `nebius.storage.v1.StopTransferRequest` protobuf message. */ export interface StopTransferRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.StopTransferRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** Contains the `id` protobuf field. */ id: string; } /** Encodes, decodes, converts, and creates {@link StopTransferRequest} messages. */ export declare const StopTransferRequest: MessageFns; /** Represents the `nebius.storage.v1.ResumeTransferRequest` protobuf message. */ export interface ResumeTransferRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.ResumeTransferRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** Contains the `id` protobuf field. */ id: string; } /** Encodes, decodes, converts, and creates {@link ResumeTransferRequest} messages. */ export declare const ResumeTransferRequest: MessageFns; /** Represents the `nebius.storage.v1.DeleteTransferRequest` protobuf message. */ export interface DeleteTransferRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.DeleteTransferRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** Contains the `id` protobuf field. */ id: string; /** * Optional: expected transfer version (`metadata.resource_version`) * - If specified, ensures that only the requested version is deleted (and a `FAILED_PRECONDITION` error is returned on version mismatch) * - If not specified or set to `0`, the latest version will be deleted * */ resourceVersion: Long; } /** Encodes, decodes, converts, and creates {@link DeleteTransferRequest} messages. */ export declare const DeleteTransferRequest: MessageFns; /** Represents the `nebius.storage.v1.GetIterationHistoryRequest` protobuf message. */ export interface GetIterationHistoryRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.GetIterationHistoryRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * ID of the transfer whose iteration history to return. * */ transferId: string; /** * Specifies the maximum number of items to return in the response. * */ pageSize: Long; /** * Token for pagination, allowing the retrieval of the next set of results. * */ pageToken: string; } /** Encodes, decodes, converts, and creates {@link GetIterationHistoryRequest} messages. */ export declare const GetIterationHistoryRequest: MessageFns; /** Represents the `nebius.storage.v1.GetIterationHistoryResponse` protobuf message. */ export interface GetIterationHistoryResponse { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.GetIterationHistoryResponse"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * List of transfer iterations sorted from newest to oldest. * */ iterations: TransferIteration[]; /** * Token for pagination, indicating the next set of results can be retrieved using this token. * */ nextPageToken: string; } /** Encodes, decodes, converts, and creates {@link GetIterationHistoryResponse} messages. */ export declare const GetIterationHistoryResponse: MessageFns; /** * Defines the gRPC methods for the `nebius.storage.v1.TransferService` service. */ export type TransferServiceServiceDescription = typeof TransferServiceServiceDescription; /** * Describes the gRPC methods for the `nebius.storage.v1.TransferService` service. */ export declare const TransferServiceServiceDescription: { readonly get: { readonly path: "/nebius.storage.v1.TransferService/Get"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetTransferRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => GetTransferRequest; readonly responseSerialize: (value: Transfer) => Buffer; readonly responseDeserialize: (value: Buffer) => Transfer; }; readonly getByName: { readonly path: "/nebius.storage.v1.TransferService/GetByName"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetByNameRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => GetByNameRequest; readonly responseSerialize: (value: Transfer) => Buffer; readonly responseDeserialize: (value: Buffer) => Transfer; }; readonly list: { readonly path: "/nebius.storage.v1.TransferService/List"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListTransfersRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => ListTransfersRequest; readonly responseSerialize: (value: ListTransfersResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListTransfersResponse; }; readonly create: { readonly path: "/nebius.storage.v1.TransferService/Create"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: CreateTransferRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => CreateTransferRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; readonly update: { readonly path: "/nebius.storage.v1.TransferService/Update"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: UpdateTransferRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: true; readonly requestDeserialize: (value: Buffer) => UpdateTransferRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; readonly stop: { readonly path: "/nebius.storage.v1.TransferService/Stop"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: StopTransferRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => StopTransferRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; readonly resume: { readonly path: "/nebius.storage.v1.TransferService/Resume"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ResumeTransferRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => ResumeTransferRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; readonly delete: { readonly path: "/nebius.storage.v1.TransferService/Delete"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: DeleteTransferRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => DeleteTransferRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; readonly getIterationHistory: { readonly path: "/nebius.storage.v1.TransferService/GetIterationHistory"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetIterationHistoryRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => GetIterationHistoryRequest; readonly responseSerialize: (value: GetIterationHistoryResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => GetIterationHistoryResponse; }; }; /** * Handles server calls for the `nebius.storage.v1.TransferService` service. */ export interface TransferServiceServer extends UntypedServiceImplementation { /** * Handles the `Get` RPC. */ get: handleUnaryCall; /** * Handles the `GetByName` RPC. */ getByName: handleUnaryCall; /** * Handles the `List` RPC. */ list: handleUnaryCall; /** * Handles the `Create` RPC. */ create: handleUnaryCall; /** * Handles the `Update` RPC. */ update: handleUnaryCall; /** * Stop active transfer. If the transfer is currently moving data, * it will be transitioned to the Stopping state and will move to the Stopped state once all processes have been stopped. * If the transfer is waiting between iterations, it will stop immediately. * Only transfers in Active state can be stopped. * */ stop: handleUnaryCall; /** * Resume stopped or failed transfer. * */ resume: handleUnaryCall; /** * Fully delete a transfer along with its history. If the transfer is active, it will be stopped and then deleted. * */ delete: handleUnaryCall; /** * Get transfer iteration history. * */ getIterationHistory: handleUnaryCall; } /** * Defines the low-level gRPC client for the `nebius.storage.v1.TransferService` service. */ export interface TransferServiceBaseClient extends Client { /** * Calls the `Get` RPC. */ get(request: GetTransferRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Transfer) => void): ClientUnaryCall; /** * Calls the `GetByName` RPC. */ getByName(request: GetByNameRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Transfer) => void): ClientUnaryCall; /** * Calls the `List` RPC. */ list(request: ListTransfersRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: ListTransfersResponse) => void): ClientUnaryCall; /** * Calls the `Create` RPC. */ create(request: CreateTransferRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Operation) => void): ClientUnaryCall; /** * Calls the `Update` RPC. */ update(request: UpdateTransferRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Operation) => void): ClientUnaryCall; /** * Stop active transfer. If the transfer is currently moving data, * it will be transitioned to the Stopping state and will move to the Stopped state once all processes have been stopped. * If the transfer is waiting between iterations, it will stop immediately. * Only transfers in Active state can be stopped. * */ stop(request: StopTransferRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Operation) => void): ClientUnaryCall; /** * Resume stopped or failed transfer. * */ resume(request: ResumeTransferRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Operation) => void): ClientUnaryCall; /** * Fully delete a transfer along with its history. If the transfer is active, it will be stopped and then deleted. * */ delete(request: DeleteTransferRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Operation) => void): ClientUnaryCall; /** * Get transfer iteration history. * */ getIterationHistory(request: GetIterationHistoryRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: GetIterationHistoryResponse) => void): ClientUnaryCall; } /** * Creates low-level gRPC clients for the `nebius.storage.v1.TransferService` service. */ export declare const TransferServiceBaseClient: { /** Creates a low-level client for the service address. */ new (address: string, credentials: ChannelCredentials, options?: Partial): TransferServiceBaseClient; /** Contains the gRPC service description. */ service: typeof TransferServiceServiceDescription; /** Contains the fully qualified protobuf service name. */ serviceName: string; }; /** * TransferService provides functionality for creating and managing transfers * that migrate data from other providers or across different regions of Nebius Object Storage. * */ export interface TransferService { /** Contains the fully qualified protobuf service name. */ $type: "nebius.storage.v1.TransferService"; /** * Calls the `Get` RPC. */ get(request: GetTransferRequest): SDKRequestClass; /** * Calls the `Get` RPC. */ get(request: GetTransferRequest, metadata: Metadata): SDKRequestClass; /** * Calls the `Get` RPC. */ get(request: GetTransferRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Calls the `GetByName` RPC. */ getByName(request: GetByNameRequest): SDKRequestClass; /** * Calls the `GetByName` RPC. */ getByName(request: GetByNameRequest, metadata: Metadata): SDKRequestClass; /** * Calls the `GetByName` RPC. */ getByName(request: GetByNameRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Calls the `List` RPC. */ list(request: ListTransfersRequest): SDKRequestClass; /** * Calls the `List` RPC. */ list(request: ListTransfersRequest, metadata: Metadata): SDKRequestClass; /** * Calls the `List` RPC. */ list(request: ListTransfersRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Calls the `Create` RPC. */ create(request: CreateTransferRequest): SDKRequestClass>; /** * Calls the `Create` RPC. */ create(request: CreateTransferRequest, metadata: Metadata): SDKRequestClass>; /** * Calls the `Create` RPC. */ create(request: CreateTransferRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Calls the `Update` RPC. */ update(request: UpdateTransferRequest): SDKRequestClass>; /** * Calls the `Update` RPC. */ update(request: UpdateTransferRequest, metadata: Metadata): SDKRequestClass>; /** * Calls the `Update` RPC. */ update(request: UpdateTransferRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Stop active transfer. If the transfer is currently moving data, * it will be transitioned to the Stopping state and will move to the Stopped state once all processes have been stopped. * If the transfer is waiting between iterations, it will stop immediately. * Only transfers in Active state can be stopped. * */ stop(request: StopTransferRequest): SDKRequestClass>; /** * Stop active transfer. If the transfer is currently moving data, * it will be transitioned to the Stopping state and will move to the Stopped state once all processes have been stopped. * If the transfer is waiting between iterations, it will stop immediately. * Only transfers in Active state can be stopped. * */ stop(request: StopTransferRequest, metadata: Metadata): SDKRequestClass>; /** * Stop active transfer. If the transfer is currently moving data, * it will be transitioned to the Stopping state and will move to the Stopped state once all processes have been stopped. * If the transfer is waiting between iterations, it will stop immediately. * Only transfers in Active state can be stopped. * */ stop(request: StopTransferRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Resume stopped or failed transfer. * */ resume(request: ResumeTransferRequest): SDKRequestClass>; /** * Resume stopped or failed transfer. * */ resume(request: ResumeTransferRequest, metadata: Metadata): SDKRequestClass>; /** * Resume stopped or failed transfer. * */ resume(request: ResumeTransferRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Fully delete a transfer along with its history. If the transfer is active, it will be stopped and then deleted. * */ delete(request: DeleteTransferRequest): SDKRequestClass>; /** * Fully delete a transfer along with its history. If the transfer is active, it will be stopped and then deleted. * */ delete(request: DeleteTransferRequest, metadata: Metadata): SDKRequestClass>; /** * Fully delete a transfer along with its history. If the transfer is active, it will be stopped and then deleted. * */ delete(request: DeleteTransferRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Get transfer iteration history. * */ getIterationHistory(request: GetIterationHistoryRequest): SDKRequestClass; /** * Get transfer iteration history. * */ getIterationHistory(request: GetIterationHistoryRequest, metadata: Metadata): SDKRequestClass; /** * Get transfer iteration history. * */ getIterationHistory(request: GetIterationHistoryRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; } /** * Calls the `nebius.storage.v1.TransferService` service through the Nebius SDK. */ export declare class TransferService implements TransferService { private sdk; $type: "nebius.storage.v1.TransferService"; private addr; private spec; private apiServiceName; /** Creates a client that uses the SDK service address. */ constructor(sdk: SDKInterface); /** Returns the operation service for this service address. */ getOperationService(): OperationService; /** * Calls the `Get` RPC. */ get(request: GetTransferRequest): SDKRequestClass; /** * Calls the `Get` RPC. */ get(request: GetTransferRequest, metadata: Metadata): SDKRequestClass; /** * Calls the `Get` RPC. */ get(request: GetTransferRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Calls the `GetByName` RPC. */ getByName(request: GetByNameRequest): SDKRequestClass; /** * Calls the `GetByName` RPC. */ getByName(request: GetByNameRequest, metadata: Metadata): SDKRequestClass; /** * Calls the `GetByName` RPC. */ getByName(request: GetByNameRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Calls the `List` RPC. */ list(request: ListTransfersRequest): SDKRequestClass; /** * Calls the `List` RPC. */ list(request: ListTransfersRequest, metadata: Metadata): SDKRequestClass; /** * Calls the `List` RPC. */ list(request: ListTransfersRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Calls the `Create` RPC. */ create(request: CreateTransferRequest): SDKRequestClass>; /** * Calls the `Create` RPC. */ create(request: CreateTransferRequest, metadata: Metadata): SDKRequestClass>; /** * Calls the `Create` RPC. */ create(request: CreateTransferRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Calls the `Update` RPC. */ update(request: UpdateTransferRequest): SDKRequestClass>; /** * Calls the `Update` RPC. */ update(request: UpdateTransferRequest, metadata: Metadata): SDKRequestClass>; /** * Calls the `Update` RPC. */ update(request: UpdateTransferRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Stop active transfer. If the transfer is currently moving data, * it will be transitioned to the Stopping state and will move to the Stopped state once all processes have been stopped. * If the transfer is waiting between iterations, it will stop immediately. * Only transfers in Active state can be stopped. * */ stop(request: StopTransferRequest): SDKRequestClass>; /** * Stop active transfer. If the transfer is currently moving data, * it will be transitioned to the Stopping state and will move to the Stopped state once all processes have been stopped. * If the transfer is waiting between iterations, it will stop immediately. * Only transfers in Active state can be stopped. * */ stop(request: StopTransferRequest, metadata: Metadata): SDKRequestClass>; /** * Stop active transfer. If the transfer is currently moving data, * it will be transitioned to the Stopping state and will move to the Stopped state once all processes have been stopped. * If the transfer is waiting between iterations, it will stop immediately. * Only transfers in Active state can be stopped. * */ stop(request: StopTransferRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Resume stopped or failed transfer. * */ resume(request: ResumeTransferRequest): SDKRequestClass>; /** * Resume stopped or failed transfer. * */ resume(request: ResumeTransferRequest, metadata: Metadata): SDKRequestClass>; /** * Resume stopped or failed transfer. * */ resume(request: ResumeTransferRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Fully delete a transfer along with its history. If the transfer is active, it will be stopped and then deleted. * */ delete(request: DeleteTransferRequest): SDKRequestClass>; /** * Fully delete a transfer along with its history. If the transfer is active, it will be stopped and then deleted. * */ delete(request: DeleteTransferRequest, metadata: Metadata): SDKRequestClass>; /** * Fully delete a transfer along with its history. If the transfer is active, it will be stopped and then deleted. * */ delete(request: DeleteTransferRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Get transfer iteration history. * */ getIterationHistory(request: GetIterationHistoryRequest): SDKRequestClass; /** * Get transfer iteration history. * */ getIterationHistory(request: GetIterationHistoryRequest, metadata: Metadata): SDKRequestClass; /** * Get transfer iteration history. * */ getIterationHistory(request: GetIterationHistoryRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; } /** * Represents the `nebius.storage.v1.TransferSpec.OverwriteStrategy` protobuf enum. */ export type TransferSpec_OverwriteStrategy = EnumInstance<"UNRECOGNIZED" | "OVERWRITE_STRATEGY_UNSPECIFIED" | "NEVER" | "IF_NEWER">; /** Defines the static values of {@link TransferSpec_OverwriteStrategy}. */ export interface TransferSpec_OverwriteStrategyValueMembers { /** * Represents the `OVERWRITE_STRATEGY_UNSPECIFIED` protobuf enum value. */ readonly OVERWRITE_STRATEGY_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "OVERWRITE_STRATEGY_UNSPECIFIED" | "NEVER" | "IF_NEWER">; /** * Never overwrite objects that exist in the destination. * If object exists in destination bucket, skip it. * Safest option to prevent any data loss. * */ readonly NEVER: EnumInstance<"UNRECOGNIZED" | "OVERWRITE_STRATEGY_UNSPECIFIED" | "NEVER" | "IF_NEWER">; /** * Overwrite only if source object is newer than destination. * Comparison based on Last-Modified timestamp. * Recommended for incremental sync scenarios. * If touch_unmanaged flag isn't set, we do not overwrite objects that haven't been created by Data Transfer service. * */ readonly IF_NEWER: EnumInstance<"UNRECOGNIZED" | "OVERWRITE_STRATEGY_UNSPECIFIED" | "NEVER" | "IF_NEWER">; } /** Defines the runtime API for {@link TransferSpec_OverwriteStrategy}. */ export type TransferSpec_OverwriteStrategyClass = EnumClass<"UNRECOGNIZED" | "OVERWRITE_STRATEGY_UNSPECIFIED" | "NEVER" | "IF_NEWER"> & TransferSpec_OverwriteStrategyValueMembers; /** Converts and creates {@link TransferSpec_OverwriteStrategy} values. */ export declare const TransferSpec_OverwriteStrategy: TransferSpec_OverwriteStrategyClass; /** * Transfer state. * */ export type TransferStatus_State = EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "ACTIVE" | "STOPPING" | "STOPPED" | "FAILING" | "FAILED" | "DELETING">; /** Defines the static values of {@link TransferStatus_State}. */ export interface TransferStatus_StateValueMembers { /** * Represents the `STATE_UNSPECIFIED` protobuf enum value. */ readonly STATE_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "ACTIVE" | "STOPPING" | "STOPPED" | "FAILING" | "FAILED" | "DELETING">; /** * Represents the `ACTIVE` protobuf enum value. */ readonly ACTIVE: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "ACTIVE" | "STOPPING" | "STOPPED" | "FAILING" | "FAILED" | "DELETING">; /** * Represents the `STOPPING` protobuf enum value. */ readonly STOPPING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "ACTIVE" | "STOPPING" | "STOPPED" | "FAILING" | "FAILED" | "DELETING">; /** * Represents the `STOPPED` protobuf enum value. */ readonly STOPPED: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "ACTIVE" | "STOPPING" | "STOPPED" | "FAILING" | "FAILED" | "DELETING">; /** * Represents the `FAILING` protobuf enum value. */ readonly FAILING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "ACTIVE" | "STOPPING" | "STOPPED" | "FAILING" | "FAILED" | "DELETING">; /** * Represents the `FAILED` protobuf enum value. */ readonly FAILED: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "ACTIVE" | "STOPPING" | "STOPPED" | "FAILING" | "FAILED" | "DELETING">; /** * Represents the `DELETING` protobuf enum value. */ readonly DELETING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "ACTIVE" | "STOPPING" | "STOPPED" | "FAILING" | "FAILED" | "DELETING">; } /** Defines the runtime API for {@link TransferStatus_State}. */ export type TransferStatus_StateClass = EnumClass<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "ACTIVE" | "STOPPING" | "STOPPED" | "FAILING" | "FAILED" | "DELETING"> & TransferStatus_StateValueMembers; /** Converts and creates {@link TransferStatus_State} values. */ export declare const TransferStatus_State: TransferStatus_StateClass; /** * Transfer suspension state. * */ export type TransferStatus_SuspensionState = EnumInstance<"UNRECOGNIZED" | "SUSPENSION_STATE_UNSPECIFIED" | "NOT_SUSPENDED" | "SUSPENDED">; /** Defines the static values of {@link TransferStatus_SuspensionState}. */ export interface TransferStatus_SuspensionStateValueMembers { /** * Represents the `SUSPENSION_STATE_UNSPECIFIED` protobuf enum value. */ readonly SUSPENSION_STATE_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "SUSPENSION_STATE_UNSPECIFIED" | "NOT_SUSPENDED" | "SUSPENDED">; /** * Represents the `NOT_SUSPENDED` protobuf enum value. */ readonly NOT_SUSPENDED: EnumInstance<"UNRECOGNIZED" | "SUSPENSION_STATE_UNSPECIFIED" | "NOT_SUSPENDED" | "SUSPENDED">; /** * Represents the `SUSPENDED` protobuf enum value. */ readonly SUSPENDED: EnumInstance<"UNRECOGNIZED" | "SUSPENSION_STATE_UNSPECIFIED" | "NOT_SUSPENDED" | "SUSPENDED">; } /** Defines the runtime API for {@link TransferStatus_SuspensionState}. */ export type TransferStatus_SuspensionStateClass = EnumClass<"UNRECOGNIZED" | "SUSPENSION_STATE_UNSPECIFIED" | "NOT_SUSPENDED" | "SUSPENDED"> & TransferStatus_SuspensionStateValueMembers; /** Converts and creates {@link TransferStatus_SuspensionState} values. */ export declare const TransferStatus_SuspensionState: TransferStatus_SuspensionStateClass; /** * Iteration state. * */ export type TransferIteration_State = EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "IN_PROGRESS" | "COMPLETED" | "INTERRUPTED" | "FAILED">; /** Defines the static values of {@link TransferIteration_State}. */ export interface TransferIteration_StateValueMembers { /** * Represents the `STATE_UNSPECIFIED` protobuf enum value. */ readonly STATE_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "IN_PROGRESS" | "COMPLETED" | "INTERRUPTED" | "FAILED">; /** * Represents the `IN_PROGRESS` protobuf enum value. */ readonly IN_PROGRESS: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "IN_PROGRESS" | "COMPLETED" | "INTERRUPTED" | "FAILED">; /** * Represents the `COMPLETED` protobuf enum value. */ readonly COMPLETED: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "IN_PROGRESS" | "COMPLETED" | "INTERRUPTED" | "FAILED">; /** * Represents the `INTERRUPTED` protobuf enum value. */ readonly INTERRUPTED: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "IN_PROGRESS" | "COMPLETED" | "INTERRUPTED" | "FAILED">; /** * Represents the `FAILED` protobuf enum value. */ readonly FAILED: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "IN_PROGRESS" | "COMPLETED" | "INTERRUPTED" | "FAILED">; } /** Defines the runtime API for {@link TransferIteration_State}. */ export type TransferIteration_StateClass = EnumClass<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "IN_PROGRESS" | "COMPLETED" | "INTERRUPTED" | "FAILED"> & TransferIteration_StateValueMembers; /** Converts and creates {@link TransferIteration_State} values. */ export declare const TransferIteration_State: TransferIteration_StateClass; /** * Represents the `nebius.storage.v1.TransferError.Origin` protobuf enum. */ export type TransferError_Origin = EnumInstance<"UNRECOGNIZED" | "ORIGIN_UNSPECIFIED" | "SOURCE" | "DESTINATION">; /** Defines the static values of {@link TransferError_Origin}. */ export interface TransferError_OriginValueMembers { /** * Represents the `ORIGIN_UNSPECIFIED` protobuf enum value. */ readonly ORIGIN_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "ORIGIN_UNSPECIFIED" | "SOURCE" | "DESTINATION">; /** * Error originated from the source. * */ readonly SOURCE: EnumInstance<"UNRECOGNIZED" | "ORIGIN_UNSPECIFIED" | "SOURCE" | "DESTINATION">; /** * Error originated from the destination. * */ readonly DESTINATION: EnumInstance<"UNRECOGNIZED" | "ORIGIN_UNSPECIFIED" | "SOURCE" | "DESTINATION">; } /** Defines the runtime API for {@link TransferError_Origin}. */ export type TransferError_OriginClass = EnumClass<"UNRECOGNIZED" | "ORIGIN_UNSPECIFIED" | "SOURCE" | "DESTINATION"> & TransferError_OriginValueMembers; /** Converts and creates {@link TransferError_Origin} values. */ export declare const TransferError_Origin: TransferError_OriginClass; /** * Transfer that migrates data from other providers or across different regions of Nebius Object Storage. * Transfer consists of consecutive iterations where the service lists objects in the source bucket and * moves those that need to be transferred according to the specified overwrite strategy and touch unmanaged flag value. * If the enable deletes in destination flag is set, the service also lists destination bucket and deletes * objects which do not exist in the source bucket according to the touch unmanaged flag value. * After an iteration completes, the transfer will stop if its stop condition is met. Otherwise, * it will wait for the defined inter-iteration interval before starting the next iteration. * */ export interface Transfer { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.Transfer"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** Contains the `metadata` protobuf field. */ metadata?: ResourceMetadata | undefined; /** Contains the `spec` protobuf field. */ spec?: TransferSpec | undefined; /** Contains the `status` protobuf field. */ status?: TransferStatus | undefined; } /** Encodes, decodes, converts, and creates {@link Transfer} messages. */ export declare const Transfer: MessageFns; /** Represents the `nebius.storage.v1.TransferSpec` protobuf message. */ export interface TransferSpec { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.TransferSpec"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Source from which the transfer reads data. * */ source?: TransferSource | undefined; /** * Destination to which the transfer writes data. * */ destination?: TransferDestination | undefined; /** * Limiters applied to source bucket operations. These limits include all operations * required for transfer (HeadObject, GetObject, ListObjects). For details about * which operations are used, see public documentation: http://docs.nebius.com/object-storage/transfer/quickstart#background. * * Note: Since the service performs comparable request volumes and data transfers * to both source and destination, these limits will indirectly constrain * destination operations as well. * */ limiters?: TransferSpec_Limiters | undefined; /** * The time to wait since the previous iteration before starting the next one. * Default is 15 minutes if not specified. * */ interIterationInterval?: Duration | undefined; /** * Overwrite strategy set logic of overwrite already existed objects in destination bucket. * */ overwriteStrategy: TransferSpec_OverwriteStrategy; /** * If enable_deletes_in_destination flag is set, service will delete objects that exist in destination, but don't exist in source. * If touch_unmanaged flag isn't set, we do not delete objects that haven't been created by Data Transfer service. * */ enableDeletesInDestination: boolean; /** * If touch_unmanaged flag is set, service will be allowed to overwrite and delete from destination objects that were not * created by Data Transfer Service. If this flag is false, Data Transfer Service will never overwrite or delete objects * that haven't been created by Data Transfer service. * */ touchUnmanaged: boolean; /** * The stop condition is checked after every iteration. If the condition is met, the transfer will stop. * */ stopCondition?: { $case: "afterOneIteration"; afterOneIteration: TransferSpec_StopConditionAfterOneIteration; } | { $case: "afterNEmptyIterations"; afterNEmptyIterations: TransferSpec_StopConditionAfterNEmptyIterations; } | { $case: "infinite"; infinite: TransferSpec_StopConditionInfinite; } | undefined; } /** Encodes, decodes, converts, and creates {@link TransferSpec} messages. */ export declare const TransferSpec: MessageFns; /** Represents the `nebius.storage.v1.TransferSpec.Limiters` protobuf message. */ export interface TransferSpec_Limiters { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.TransferSpec.Limiters"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Maximum bandwidth in bytes per second. If set to zero, default limit will be applied. * */ bandwidthBytesPerSecond: Long; /** * Maximum number of requests per second. If set to zero, default limit will be applied. * */ requestsPerSecond: Long; } /** Encodes, decodes, converts, and creates {@link TransferSpec_Limiters} messages. */ export declare const TransferSpec_Limiters: MessageFns; /** Represents the `nebius.storage.v1.TransferSpec.StopConditionAfterOneIteration` protobuf message. */ export interface TransferSpec_StopConditionAfterOneIteration { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.TransferSpec.StopConditionAfterOneIteration"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; } /** Encodes, decodes, converts, and creates {@link TransferSpec_StopConditionAfterOneIteration} messages. */ export declare const TransferSpec_StopConditionAfterOneIteration: MessageFns; /** Represents the `nebius.storage.v1.TransferSpec.StopConditionAfterNEmptyIterations` protobuf message. */ export interface TransferSpec_StopConditionAfterNEmptyIterations { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.TransferSpec.StopConditionAfterNEmptyIterations"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Number of consecutive iterations with zero transferred objects required to stop transfer. * */ emptyIterationsThreshold: number; } /** Encodes, decodes, converts, and creates {@link TransferSpec_StopConditionAfterNEmptyIterations} messages. */ export declare const TransferSpec_StopConditionAfterNEmptyIterations: MessageFns; /** Represents the `nebius.storage.v1.TransferSpec.StopConditionInfinite` protobuf message. */ export interface TransferSpec_StopConditionInfinite { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.TransferSpec.StopConditionInfinite"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; } /** Encodes, decodes, converts, and creates {@link TransferSpec_StopConditionInfinite} messages. */ export declare const TransferSpec_StopConditionInfinite: MessageFns; /** Represents the `nebius.storage.v1.TransferSource` protobuf message. */ export interface TransferSource { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.TransferSource"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Prefix to filter objects in the source. Only objects whose keys start with this prefix will be transferred. * During transfer, the resulting object key in the destination is computed * by removing source.prefix from the original key and then prepending destination.prefix (if provided). * Important: This transformation may result in an empty object key or one that exceeds allowed length limits. * Use prefixes that guarantee valid resulting object keys for your objects after transformation. * */ prefix: string; /** * Source storage provider configuration. * */ provider?: { $case: "nebius"; nebius: TransferSource_NebiusProvider; } | { $case: "s3Compatible"; s3Compatible: TransferSource_S3CompatibleProvider; } | { $case: "azureBlobStorage"; azureBlobStorage: TransferSource_AzureBlobStorageProvider; } | undefined; } /** Encodes, decodes, converts, and creates {@link TransferSource} messages. */ export declare const TransferSource: MessageFns; /** Represents the `nebius.storage.v1.TransferSource.NebiusProvider` protobuf message. */ export interface TransferSource_NebiusProvider { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.TransferSource.NebiusProvider"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Nebius region where the source bucket is located. * */ region: string; /** * Name of the source bucket. * */ bucketName: string; /** * Credentials for accessing the source bucket. These credentials must have list and get permissions. * */ credentials?: { $case: "anonymous"; anonymous: TransferCredentialsAnonymous; } | { $case: "accessKey"; accessKey: TransferCredentialsAccessKey; } | undefined; } /** Encodes, decodes, converts, and creates {@link TransferSource_NebiusProvider} messages. */ export declare const TransferSource_NebiusProvider: MessageFns; /** Represents the `nebius.storage.v1.TransferSource.S3CompatibleProvider` protobuf message. */ export interface TransferSource_S3CompatibleProvider { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.TransferSource.S3CompatibleProvider"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * The endpoint must be in the form of a URL, starting with the protocol (https), * followed by the endpoint address without a trailing slash. * Example: "https://storage.some-cloud". * */ endpoint: string; /** * S3-compatible provider region where source bucket is located. * */ region: string; /** * Name of the source bucket. * */ bucketName: string; /** * Credentials for accessing the source bucket. These credentials must have list and get permissions. * */ credentials?: { $case: "anonymous"; anonymous: TransferCredentialsAnonymous; } | { $case: "accessKey"; accessKey: TransferCredentialsAccessKey; } | undefined; } /** Encodes, decodes, converts, and creates {@link TransferSource_S3CompatibleProvider} messages. */ export declare const TransferSource_S3CompatibleProvider: MessageFns; /** Represents the `nebius.storage.v1.TransferSource.AzureBlobStorageProvider` protobuf message. */ export interface TransferSource_AzureBlobStorageProvider { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.TransferSource.AzureBlobStorageProvider"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * The endpoint must be in the form of a URL, starting with the protocol (https), * followed by the endpoint address without a trailing slash. * Example: "https://storageaccountname.blob.core.windows.net". * */ endpoint: string; /** * Name of the source Azure Blob Storage container. * */ containerName: string; /** * Credentials for accessing the source container. These credentials must have list and get permissions. * */ credentials?: { $case: "anonymous"; anonymous: TransferCredentialsAnonymous; } | { $case: "azureStorageAccount"; azureStorageAccount: TransferCredentialsAzureStorageAccount; } | undefined; } /** Encodes, decodes, converts, and creates {@link TransferSource_AzureBlobStorageProvider} messages. */ export declare const TransferSource_AzureBlobStorageProvider: MessageFns; /** Represents the `nebius.storage.v1.TransferDestination` protobuf message. */ export interface TransferDestination { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.TransferDestination"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Prefix to add to the beginning of each transferred object key in the destination. * During transfer, the resulting object key in the destination is computed * by removing source.prefix (if provided) from the original key and then prepending destination.prefix. * Important: This transformation may result in an empty object key or one that exceeds allowed length limits. * Use prefixes that guarantee valid resulting object keys for your objects after transformation. * */ prefix: string; /** * Destination storage provider configuration. * */ provider?: { $case: "nebius"; nebius: TransferDestination_NebiusProvider; } | { $case: "s3Compatible"; s3Compatible: TransferDestination_S3CompatibleProvider; } | undefined; } /** Encodes, decodes, converts, and creates {@link TransferDestination} messages. */ export declare const TransferDestination: MessageFns; /** Represents the `nebius.storage.v1.TransferDestination.NebiusProvider` protobuf message. */ export interface TransferDestination_NebiusProvider { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.TransferDestination.NebiusProvider"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Nebius region where the destination bucket is located. * */ region: string; /** * Name of the destination bucket. * */ bucketName: string; /** * Credentials for accessing the destination bucket. * These credentials must have head, write and delete (if enable_deletes_in_destination flag is enabled) permissions. * */ credentials?: { $case: "accessKey"; accessKey: TransferCredentialsAccessKey; } | undefined; } /** Encodes, decodes, converts, and creates {@link TransferDestination_NebiusProvider} messages. */ export declare const TransferDestination_NebiusProvider: MessageFns; /** Represents the `nebius.storage.v1.TransferDestination.S3CompatibleProvider` protobuf message. */ export interface TransferDestination_S3CompatibleProvider { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.TransferDestination.S3CompatibleProvider"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * The endpoint must be in the form of a URL, starting with the protocol (https), * followed by the endpoint address without a trailing slash. * Example: "https://storage.some-cloud". * */ endpoint: string; /** * S3-compatible provider region where destination bucket is located. * */ region: string; /** * Name of the destination bucket. * */ bucketName: string; /** * Credentials for accessing the destination bucket. * These credentials must have head, write and delete (if enable_deletes_in_destination flag is enabled) permissions. * */ credentials?: { $case: "anonymous"; anonymous: TransferCredentialsAnonymous; } | { $case: "accessKey"; accessKey: TransferCredentialsAccessKey; } | undefined; } /** Encodes, decodes, converts, and creates {@link TransferDestination_S3CompatibleProvider} messages. */ export declare const TransferDestination_S3CompatibleProvider: MessageFns; /** Represents the `nebius.storage.v1.TransferCredentialsAnonymous` protobuf message. */ export interface TransferCredentialsAnonymous { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.TransferCredentialsAnonymous"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; } /** Encodes, decodes, converts, and creates {@link TransferCredentialsAnonymous} messages. */ export declare const TransferCredentialsAnonymous: MessageFns; /** Represents the `nebius.storage.v1.TransferCredentialsAccessKey` protobuf message. */ export interface TransferCredentialsAccessKey { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.TransferCredentialsAccessKey"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Access key ID. * */ accessKeyId: string; /** * Secret access key. * */ secretAccessKey: string; } /** Encodes, decodes, converts, and creates {@link TransferCredentialsAccessKey} messages. */ export declare const TransferCredentialsAccessKey: MessageFns; /** Represents the `nebius.storage.v1.TransferCredentialsAzureStorageAccount` protobuf message. */ export interface TransferCredentialsAzureStorageAccount { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.TransferCredentialsAzureStorageAccount"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Storage account name. * */ accountName: string; /** * Storage account access key. * */ accessKey: string; } /** Encodes, decodes, converts, and creates {@link TransferCredentialsAzureStorageAccount} messages. */ export declare const TransferCredentialsAzureStorageAccount: MessageFns; /** Represents the `nebius.storage.v1.TransferStatus` protobuf message. */ export interface TransferStatus { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.TransferStatus"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Current transfer state. * */ state: TransferStatus_State; /** * Error information if the transfer has failed. * */ error?: TransferError | undefined; /** * If the transfer is suspended, transfer's suspension state becomes SUSPENDED. * */ suspensionState: TransferStatus_SuspensionState; /** * If there is active iteration, its status will be given. * If it is a new transfer that doesn't have iteration yet, nothing will be returned. * Otherwise, last finished transaction will be returned. * */ lastIteration?: TransferIteration | undefined; } /** Encodes, decodes, converts, and creates {@link TransferStatus} messages. */ export declare const TransferStatus: MessageFns; /** Represents the `nebius.storage.v1.TransferIteration` protobuf message. */ export interface TransferIteration { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.TransferIteration"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Sequence number of the iteration in the transfer, starting from 1. * */ sequenceNumber: Long; /** * Current iteration state. * */ state: TransferIteration_State; /** * Human-readable error description. Populated only if state is FAILED. * */ error?: TransferError | undefined; /** * Iteration start time. * */ startTime?: Dayjs | undefined; /** * Iteration end time. * */ endTime?: Dayjs | undefined; /** * Number of objects transferred during this iteration. * */ objectsTransferredCount: Long; /** * Number of objects deleted from destination bucket during this iteration. * */ objectsDeletedCount: Long; /** * Total size of objects transferred during this iteration. * */ objectsTransferredSize: Long; /** * Average throughput in bytes per second during the iteration. * */ averageThroughputBytes: Long; } /** Encodes, decodes, converts, and creates {@link TransferIteration} messages. */ export declare const TransferIteration: MessageFns; /** Represents the `nebius.storage.v1.TransferError` protobuf message. */ export interface TransferError { /** Contains the fully qualified protobuf type name. */ $type: "nebius.storage.v1.TransferError"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Endpoint where the error occurred. * */ origin: TransferError_Origin; /** * Error code, usually taken from the endpoint response. * */ code: string; /** * Error message, usually taken from the endpoint response. * */ message: string; } /** Encodes, decodes, converts, and creates {@link TransferError} messages. */ export declare const TransferError: MessageFns; //# sourceMappingURL=index.d.ts.map