import { Long, unknownFieldsSymbol } from "../../../../runtime/protos/index.js"; import type { Dayjs, MessageDescriptor, MessageFns } 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 { Status } from "../../../google/rpc/index.js"; /** * @deprecated Deprecated: migrate to common/v1. */ export interface GetOperationRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.common.v1alpha1.GetOperationRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Operation ID. * */ id: string; } /** Encodes, decodes, converts, and creates {@link GetOperationRequest} messages. */ export declare const GetOperationRequest: MessageFns; /** * @deprecated Deprecated: migrate to common/v1. */ export interface ListOperationsRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.common.v1alpha1.ListOperationsRequest"; /** 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 Resource to list operations for. * */ resourceId: string; /** * Page size. [1...1000]. Optional, if not specified, a reasonable default will be chosen by the service. * */ pageSize: Long; /** * Listing continuation token. Empty to start listing from the first page. * */ pageToken: string; /** * Filter expression for the listing results. Optional. * Filter expression format: TBD. * */ filter: string; } /** Encodes, decodes, converts, and creates {@link ListOperationsRequest} messages. */ export declare const ListOperationsRequest: MessageFns; /** * @deprecated Deprecated: migrate to common/v1. */ export interface ListOperationsResponse { /** Contains the fully qualified protobuf type name. */ $type: "nebius.common.v1alpha1.ListOperationsResponse"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * List of operations on this result page. * */ operations: Operation[]; /** * Listing continuation token for the next page of results. * */ nextPageToken: string; } /** Encodes, decodes, converts, and creates {@link ListOperationsResponse} messages. */ export declare const ListOperationsResponse: MessageFns; /** * @deprecated Deprecated: migrate to common/v1. */ export interface ListOperationsByParentRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.common.v1alpha1.ListOperationsByParentRequest"; /** 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 parent to list operations for resource type at. * */ parentId: string; /** * Page size. [1...1000]. Optional, if not specified, a reasonable default will be chosen by the service. * */ pageSize: Long; /** * Listing continuation token. Empty to start listing from the first page. * */ pageToken: string; /** * Filter expression for the listing results. Optional. * Filter expression format: TBD. * */ filter: string; } /** Encodes, decodes, converts, and creates {@link ListOperationsByParentRequest} messages. */ export declare const ListOperationsByParentRequest: MessageFns; /** * Defines the gRPC methods for the `nebius.common.v1alpha1.OperationService` service. * @deprecated Deprecated: migrate to common/v1. */ export type OperationServiceServiceDescription = typeof OperationServiceServiceDescription; /** * Describes the gRPC methods for the `nebius.common.v1alpha1.OperationService` service. * @deprecated Deprecated: migrate to common/v1. */ export declare const OperationServiceServiceDescription: { readonly get: { readonly path: "/nebius.common.v1alpha1.OperationService/Get"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetOperationRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => GetOperationRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; readonly list: { readonly path: "/nebius.common.v1alpha1.OperationService/List"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListOperationsRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => ListOperationsRequest; readonly responseSerialize: (value: ListOperationsResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListOperationsResponse; }; }; /** * Handles server calls for the `nebius.common.v1alpha1.OperationService` service. * @deprecated Deprecated: migrate to common/v1. */ export interface OperationServiceServer extends UntypedServiceImplementation { /** * Returns the latest state of the specified operation. * */ get: handleUnaryCall; /** * Lists operations for the specified resource. * */ list: handleUnaryCall; } /** * Defines the low-level gRPC client for the `nebius.common.v1alpha1.OperationService` service. * @deprecated Deprecated: migrate to common/v1. */ export interface OperationServiceBaseClient extends Client { /** * Returns the latest state of the specified operation. * */ get(request: GetOperationRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Operation) => void): ClientUnaryCall; /** * Lists operations for the specified resource. * */ list(request: ListOperationsRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: ListOperationsResponse) => void): ClientUnaryCall; } /** * Creates low-level gRPC clients for the `nebius.common.v1alpha1.OperationService` service. * @deprecated Deprecated: migrate to common/v1. */ export declare const OperationServiceBaseClient: { /** Creates a low-level client for the service address. */ new (address: string, credentials: ChannelCredentials, options?: Partial): OperationServiceBaseClient; /** Contains the gRPC service description. */ service: typeof OperationServiceServiceDescription; /** Contains the fully qualified protobuf service name. */ serviceName: string; }; /** * Service for reading operations. * * @deprecated Deprecated: migrate to common/v1. */ export interface OperationService { /** Contains the fully qualified protobuf service name. */ $type: "nebius.common.v1alpha1.OperationService"; /** * Returns the latest state of the specified operation. * */ get(request: GetOperationRequest): SDKRequestClass>; /** * Returns the latest state of the specified operation. * */ get(request: GetOperationRequest, metadata: Metadata): SDKRequestClass>; /** * Returns the latest state of the specified operation. * */ get(request: GetOperationRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Lists operations for the specified resource. * */ list(request: ListOperationsRequest): SDKRequestClass; /** * Lists operations for the specified resource. * */ list(request: ListOperationsRequest, metadata: Metadata): SDKRequestClass; /** * Lists operations for the specified resource. * */ list(request: ListOperationsRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; } /** Contains one page of operations. */ export interface OperationServiceListResponse { /** Contains the operations on this page. */ operations: OperationWrapper[]; /** Contains the token that gets the next page. */ nextPageToken: string; } /** * Calls the `nebius.common.v1alpha1.OperationService` service through the Nebius SDK. * @deprecated Deprecated: migrate to common/v1. */ export declare class OperationService implements OperationService { private sdk; private addr; $type: "nebius.common.v1alpha1.OperationService"; private spec; /** * @deprecated Deprecated: migrate to common/v1. */ /** Creates a client for the specified service address. */ constructor(sdk: SDKInterface, addr: string); /** * Returns the latest state of the specified operation. * */ get(request: GetOperationRequest): SDKRequestClass>; /** * Returns the latest state of the specified operation. * */ get(request: GetOperationRequest, metadata: Metadata): SDKRequestClass>; /** * Returns the latest state of the specified operation. * */ get(request: GetOperationRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Lists operations for the specified resource. * */ list(request: ListOperationsRequest): SDKRequestClass; /** * Lists operations for the specified resource. * */ list(request: ListOperationsRequest, metadata: Metadata): SDKRequestClass; /** * Lists operations for the specified resource. * */ list(request: ListOperationsRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; } /** * @deprecated Deprecated: migrate to common/v1. */ export interface Operation { /** Contains the fully qualified protobuf type name. */ $type: "nebius.common.v1alpha1.Operation"; /** 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 operation. * */ id: string; /** * Human readable description of the operation. 0-256 characters long. * */ description: string; /** * Creation timestamp. * */ createdAt?: Dayjs | undefined; /** * ID of the user or service account who initiated the operation. * */ createdBy: string; /** * The time when the operation finished. * */ finishedAt?: Dayjs | undefined; /** * The request that generated this operation. * */ request?: { typeUrl: string; value: Uint8Array; } | undefined; /** * The request headers that are essential for the request that generated the operation. * For instance, `x-resetmask`. Without these headers the request might have been processed * differently if repeated. * All the header names *must* be converted to lower case. * Validator is based on: * https://httpwg.org/specs/rfc9110.html#considerations.for.new.field.names * */ requestHeaders: { [key: string]: Operation_request_header; }; /** * ID of the resource that this operation creates, updates, deletes or otherwise changes. * * If the operation affects multiple resources or does not affect any API resources at all * (e.g. a routine maintenance operation visible to the user), the [resource_id] must be empty. * */ resourceId: string; /** * Snapshot of the resource at the moment this operation started. * - [resource.spec] and [resource.metadata] reflect the desired resource state at the moment * this operation started. * E.g., in an Update operation it will be the *updated* resource spec and metadata, * in a Create operation it will be the spec and metadata *of the resource being created*, * and so on. * - [resource.status] reflects the status of the resource at the moment this operation started. * This is a snapshot, call the `Service/Get` to get current status of the resource. * * The [resource] field MUST never be updated *after* this operation has started. * * In a Delete operation, an operation affecting multiple resources or an operation that doesn't * affect any API resources at all (e.g. a routine maintenance operation visible to the user), * the [resource] inside MUST be a [google.protobuf.Empty]. * */ resource?: { typeUrl: string; value: Uint8Array; } | undefined; /** * Additional information about the progress of an operation, e.g., a progress percentage. * MAY be absent while the operation is running, MUST be absent after the operation has completed. * * Format of message inside [progress_data] is service-dependent and MUST be documented by the * service, IF it is used. * */ progressData?: { typeUrl: string; value: Uint8Array; } | undefined; /** * The status of this operation. Set when this operation is completed. * See https://github.com/grpc/grpc/blob/master/src/proto/grpc/status/status.proto. * * [status.code] is https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto: * - If [status.code] == OK, the operation has completed successfully. * - If [status.code] != OK, the operation has failed or has been cancelled. * - [status.message] will contain a user-readable and actionable error message. * - [status.details] will contain additional diagnostic information in the form of * [ServiceError] from ../error/v1alpha1/error.proto * - [status.code] must belong to an Operation-compatible subset of GRPC codes: * OK, CANCELLED, PERMISSION_DENIED, RESOURCE_EXHAUSTED, FAILED_PRECONDITION, ABORTED, INTERNAL * */ status?: Status | undefined; } /** Encodes, decodes, converts, and creates {@link Operation} messages. */ export declare const Operation: MessageFns; /** * Request header is a container for all the values of a particular header of a request * as there is no such thing as map * */ export interface Operation_request_header { /** Contains the fully qualified protobuf type name. */ $type: "nebius.common.v1alpha1.Operation.request_header"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * The values of a particular header from a request * */ values: string[]; } /** Encodes, decodes, converts, and creates {@link Operation_request_header} messages. */ export declare const Operation_request_header: MessageFns; //# sourceMappingURL=index.d.ts.map