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, ServiceError } from "../../common/v1/index.js"; import { DiskSpec_DiskType, InstanceStatus_InstanceState } from "../../compute/v1/index.js"; /** * Controls which sensitive values the response includes. * */ export type GetDevlabRequest_View = EnumInstance<"UNRECOGNIZED" | "VIEW_UNSPECIFIED" | "SECRET">; /** Defines the static values of {@link GetDevlabRequest_View}. */ export interface GetDevlabRequest_ViewValueMembers { /** * Masks environment-variable values and omits injected-file content. * */ readonly VIEW_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "VIEW_UNSPECIFIED" | "SECRET">; /** * Includes unmasked environment-variable values and injected-file content. * Requires the resource.devlab.getSensitiveData permission. * */ readonly SECRET: EnumInstance<"UNRECOGNIZED" | "VIEW_UNSPECIFIED" | "SECRET">; } /** Defines the runtime API for {@link GetDevlabRequest_View}. */ export type GetDevlabRequest_ViewClass = EnumClass<"UNRECOGNIZED" | "VIEW_UNSPECIFIED" | "SECRET"> & GetDevlabRequest_ViewValueMembers; /** Converts and creates {@link GetDevlabRequest_View} values. */ export declare const GetDevlabRequest_View: GetDevlabRequest_ViewClass; /** * A request to retrieve a Devlab by ID. * */ export interface GetDevlabRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.GetDevlabRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * The ID of the Devlab to retrieve. * */ id: string; /** * The response view. The default is VIEW_UNSPECIFIED. * */ view: GetDevlabRequest_View; } /** Encodes, decodes, converts, and creates {@link GetDevlabRequest} messages. */ export declare const GetDevlabRequest: MessageFns; /** * A request to list the Devlabs in a project. * */ export interface ListDevlabsRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.ListDevlabsRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * The ID of the project that contains the Devlabs. * */ parentId: string; /** * The maximum number of Devlabs to return. The default and maximum are 100. * Values outside the range 1 to 100 use the default. * */ pageSize: Long; /** * The next_page_token from the previous response. Use an empty string for the first page. * Keep parent_id unchanged when you request the next page. * */ pageToken: string; } /** Encodes, decodes, converts, and creates {@link ListDevlabsRequest} messages. */ export declare const ListDevlabsRequest: MessageFns; /** * A request to create a Devlab. * */ export interface CreateDevlabRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.CreateDevlabRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * The metadata for the new Devlab. * */ metadata?: ResourceMetadata | undefined; /** * The configuration for the new Devlab. * */ spec?: DevlabSpec | undefined; /** * Validates the request without creating the Devlab. * */ dryRun: boolean; } /** Encodes, decodes, converts, and creates {@link CreateDevlabRequest} messages. */ export declare const CreateDevlabRequest: MessageFns; /** * A request to delete a Devlab. * */ export interface DeleteDevlabRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.DeleteDevlabRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * The ID of the Devlab to delete. * */ id: string; } /** Encodes, decodes, converts, and creates {@link DeleteDevlabRequest} messages. */ export declare const DeleteDevlabRequest: MessageFns; /** * A request to restart a Devlab. * */ export interface RestartDevlabRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.RestartDevlabRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * The ID of the Devlab to restart. * */ id: string; } /** Encodes, decodes, converts, and creates {@link RestartDevlabRequest} messages. */ export declare const RestartDevlabRequest: MessageFns; /** * A request to stop a Devlab. * */ export interface StopDevlabRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.StopDevlabRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * The ID of the Devlab to stop. * */ id: string; } /** Encodes, decodes, converts, and creates {@link StopDevlabRequest} messages. */ export declare const StopDevlabRequest: MessageFns; /** * A page of Devlabs from a project. * */ export interface ListDevlabsResponse { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.ListDevlabsResponse"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * The Devlabs in this page. The list can contain fewer items than page_size. * */ items: Devlab[]; /** * The token for the next page. An empty string indicates the end of the list. * */ nextPageToken: string; } /** Encodes, decodes, converts, and creates {@link ListDevlabsResponse} messages. */ export declare const ListDevlabsResponse: MessageFns; /** * Defines the gRPC methods for the `nebius.ai.v1.DevlabService` service. */ export type DevlabServiceServiceDescription = typeof DevlabServiceServiceDescription; /** * Describes the gRPC methods for the `nebius.ai.v1.DevlabService` service. */ export declare const DevlabServiceServiceDescription: { readonly get: { readonly path: "/nebius.ai.v1.DevlabService/Get"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetDevlabRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => GetDevlabRequest; readonly responseSerialize: (value: Devlab) => Buffer; readonly responseDeserialize: (value: Buffer) => Devlab; }; readonly getByName: { readonly path: "/nebius.ai.v1.DevlabService/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: Devlab) => Buffer; readonly responseDeserialize: (value: Buffer) => Devlab; }; readonly list: { readonly path: "/nebius.ai.v1.DevlabService/List"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListDevlabsRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => ListDevlabsRequest; readonly responseSerialize: (value: ListDevlabsResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListDevlabsResponse; }; readonly create: { readonly path: "/nebius.ai.v1.DevlabService/Create"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: CreateDevlabRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => CreateDevlabRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; readonly delete: { readonly path: "/nebius.ai.v1.DevlabService/Delete"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: DeleteDevlabRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => DeleteDevlabRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; readonly restart: { readonly path: "/nebius.ai.v1.DevlabService/Restart"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: RestartDevlabRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => RestartDevlabRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; readonly stop: { readonly path: "/nebius.ai.v1.DevlabService/Stop"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: StopDevlabRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => StopDevlabRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; }; /** * Handles server calls for the `nebius.ai.v1.DevlabService` service. */ export interface DevlabServiceServer extends UntypedServiceImplementation { /** * Returns the specified Devlab. * */ get: handleUnaryCall; /** * Returns the specified Devlab by name. * */ getByName: handleUnaryCall; /** * Retrieves a list of Devlabs. * */ list: handleUnaryCall; /** * Creates a Devlab. * */ create: handleUnaryCall; /** * Deletes a Devlab. * */ delete: handleUnaryCall; /** * Restarts a Devlab. * */ restart: handleUnaryCall; /** * Stops a Devlab. * */ stop: handleUnaryCall; } /** * Defines the low-level gRPC client for the `nebius.ai.v1.DevlabService` service. */ export interface DevlabServiceBaseClient extends Client { /** * Returns the specified Devlab. * */ get(request: GetDevlabRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Devlab) => void): ClientUnaryCall; /** * Returns the specified Devlab by name. * */ getByName(request: GetByNameRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Devlab) => void): ClientUnaryCall; /** * Retrieves a list of Devlabs. * */ list(request: ListDevlabsRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: ListDevlabsResponse) => void): ClientUnaryCall; /** * Creates a Devlab. * */ create(request: CreateDevlabRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Operation) => void): ClientUnaryCall; /** * Deletes a Devlab. * */ delete(request: DeleteDevlabRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Operation) => void): ClientUnaryCall; /** * Restarts a Devlab. * */ restart(request: RestartDevlabRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Operation) => void): ClientUnaryCall; /** * Stops a Devlab. * */ stop(request: StopDevlabRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Operation) => void): ClientUnaryCall; } /** * Creates low-level gRPC clients for the `nebius.ai.v1.DevlabService` service. */ export declare const DevlabServiceBaseClient: { /** Creates a low-level client for the service address. */ new (address: string, credentials: ChannelCredentials, options?: Partial): DevlabServiceBaseClient; /** Contains the gRPC service description. */ service: typeof DevlabServiceServiceDescription; /** Contains the fully qualified protobuf service name. */ serviceName: string; }; /** * Service to create/manage Devlabs. * */ export interface DevlabService { /** Contains the fully qualified protobuf service name. */ $type: "nebius.ai.v1.DevlabService"; /** * Returns the specified Devlab. * */ get(request: GetDevlabRequest): SDKRequestClass; /** * Returns the specified Devlab. * */ get(request: GetDevlabRequest, metadata: Metadata): SDKRequestClass; /** * Returns the specified Devlab. * */ get(request: GetDevlabRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Returns the specified Devlab by name. * */ getByName(request: GetByNameRequest): SDKRequestClass; /** * Returns the specified Devlab by name. * */ getByName(request: GetByNameRequest, metadata: Metadata): SDKRequestClass; /** * Returns the specified Devlab by name. * */ getByName(request: GetByNameRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Retrieves a list of Devlabs. * */ list(request: ListDevlabsRequest): SDKRequestClass; /** * Retrieves a list of Devlabs. * */ list(request: ListDevlabsRequest, metadata: Metadata): SDKRequestClass; /** * Retrieves a list of Devlabs. * */ list(request: ListDevlabsRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Creates a Devlab. * */ create(request: CreateDevlabRequest): SDKRequestClass>; /** * Creates a Devlab. * */ create(request: CreateDevlabRequest, metadata: Metadata): SDKRequestClass>; /** * Creates a Devlab. * */ create(request: CreateDevlabRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Deletes a Devlab. * */ delete(request: DeleteDevlabRequest): SDKRequestClass>; /** * Deletes a Devlab. * */ delete(request: DeleteDevlabRequest, metadata: Metadata): SDKRequestClass>; /** * Deletes a Devlab. * */ delete(request: DeleteDevlabRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Restarts a Devlab. * */ restart(request: RestartDevlabRequest): SDKRequestClass>; /** * Restarts a Devlab. * */ restart(request: RestartDevlabRequest, metadata: Metadata): SDKRequestClass>; /** * Restarts a Devlab. * */ restart(request: RestartDevlabRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Stops a Devlab. * */ stop(request: StopDevlabRequest): SDKRequestClass>; /** * Stops a Devlab. * */ stop(request: StopDevlabRequest, metadata: Metadata): SDKRequestClass>; /** * Stops a Devlab. * */ stop(request: StopDevlabRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; } /** * Calls the `nebius.ai.v1.DevlabService` service through the Nebius SDK. */ export declare class DevlabService implements DevlabService { private sdk; $type: "nebius.ai.v1.DevlabService"; 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; /** * Returns the specified Devlab. * */ get(request: GetDevlabRequest): SDKRequestClass; /** * Returns the specified Devlab. * */ get(request: GetDevlabRequest, metadata: Metadata): SDKRequestClass; /** * Returns the specified Devlab. * */ get(request: GetDevlabRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Returns the specified Devlab by name. * */ getByName(request: GetByNameRequest): SDKRequestClass; /** * Returns the specified Devlab by name. * */ getByName(request: GetByNameRequest, metadata: Metadata): SDKRequestClass; /** * Returns the specified Devlab by name. * */ getByName(request: GetByNameRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Retrieves a list of Devlabs. * */ list(request: ListDevlabsRequest): SDKRequestClass; /** * Retrieves a list of Devlabs. * */ list(request: ListDevlabsRequest, metadata: Metadata): SDKRequestClass; /** * Retrieves a list of Devlabs. * */ list(request: ListDevlabsRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Creates a Devlab. * */ create(request: CreateDevlabRequest): SDKRequestClass>; /** * Creates a Devlab. * */ create(request: CreateDevlabRequest, metadata: Metadata): SDKRequestClass>; /** * Creates a Devlab. * */ create(request: CreateDevlabRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Deletes a Devlab. * */ delete(request: DeleteDevlabRequest): SDKRequestClass>; /** * Deletes a Devlab. * */ delete(request: DeleteDevlabRequest, metadata: Metadata): SDKRequestClass>; /** * Deletes a Devlab. * */ delete(request: DeleteDevlabRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Restarts a Devlab. * */ restart(request: RestartDevlabRequest): SDKRequestClass>; /** * Restarts a Devlab. * */ restart(request: RestartDevlabRequest, metadata: Metadata): SDKRequestClass>; /** * Restarts a Devlab. * */ restart(request: RestartDevlabRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Stops a Devlab. * */ stop(request: StopDevlabRequest): SDKRequestClass>; /** * Stops a Devlab. * */ stop(request: StopDevlabRequest, metadata: Metadata): SDKRequestClass>; /** * Stops a Devlab. * */ stop(request: StopDevlabRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; } /** * Represents protocol of the Devlab's port which will be exposed. * */ export type DevlabSpec_Port_Protocol = EnumInstance<"UNRECOGNIZED" | "PROTOCOL_UNSPECIFIED" | "HTTP" | "TCP" | "UDP">; /** Defines the static values of {@link DevlabSpec_Port_Protocol}. */ export interface DevlabSpec_Port_ProtocolValueMembers { /** * No protocol selected. Specify HTTP, TCP, or UDP. * */ readonly PROTOCOL_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "PROTOCOL_UNSPECIFIED" | "HTTP" | "TCP" | "UDP">; /** * HTTP protocol. * */ readonly HTTP: EnumInstance<"UNRECOGNIZED" | "PROTOCOL_UNSPECIFIED" | "HTTP" | "TCP" | "UDP">; /** * TCP protocol. * */ readonly TCP: EnumInstance<"UNRECOGNIZED" | "PROTOCOL_UNSPECIFIED" | "HTTP" | "TCP" | "UDP">; /** * UDP protocol. * */ readonly UDP: EnumInstance<"UNRECOGNIZED" | "PROTOCOL_UNSPECIFIED" | "HTTP" | "TCP" | "UDP">; } /** Defines the runtime API for {@link DevlabSpec_Port_Protocol}. */ export type DevlabSpec_Port_ProtocolClass = EnumClass<"UNRECOGNIZED" | "PROTOCOL_UNSPECIFIED" | "HTTP" | "TCP" | "UDP"> & DevlabSpec_Port_ProtocolValueMembers; /** Converts and creates {@link DevlabSpec_Port_Protocol} values. */ export declare const DevlabSpec_Port_Protocol: DevlabSpec_Port_ProtocolClass; /** * Mode that will be used to mount the volume. * */ export type DevlabSpec_VolumeMount_Mode = EnumInstance<"UNRECOGNIZED" | "MODE_UNSPECIFIED" | "READ_WRITE" | "READ_ONLY">; /** Defines the static values of {@link DevlabSpec_VolumeMount_Mode}. */ export interface DevlabSpec_VolumeMount_ModeValueMembers { /** * No mount mode selected. Specify READ_WRITE or READ_ONLY. * */ readonly MODE_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "MODE_UNSPECIFIED" | "READ_WRITE" | "READ_ONLY">; /** * Read-write mode. * */ readonly READ_WRITE: EnumInstance<"UNRECOGNIZED" | "MODE_UNSPECIFIED" | "READ_WRITE" | "READ_ONLY">; /** * Read-only mode. * */ readonly READ_ONLY: EnumInstance<"UNRECOGNIZED" | "MODE_UNSPECIFIED" | "READ_WRITE" | "READ_ONLY">; } /** Defines the runtime API for {@link DevlabSpec_VolumeMount_Mode}. */ export type DevlabSpec_VolumeMount_ModeClass = EnumClass<"UNRECOGNIZED" | "MODE_UNSPECIFIED" | "READ_WRITE" | "READ_ONLY"> & DevlabSpec_VolumeMount_ModeValueMembers; /** Converts and creates {@link DevlabSpec_VolumeMount_Mode} values. */ export declare const DevlabSpec_VolumeMount_Mode: DevlabSpec_VolumeMount_ModeClass; /** * Devlab state. * */ export type DevlabStatus_State = EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "FAILED" | "ERROR" | "IMAGE_PULLING">; /** Defines the static values of {@link DevlabStatus_State}. */ export interface DevlabStatus_StateValueMembers { /** * The service did not report the Devlab's state. * */ readonly STATE_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "FAILED" | "ERROR" | "IMAGE_PULLING">; /** * The Devlab is creating resources. * */ readonly PROVISIONING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "FAILED" | "ERROR" | "IMAGE_PULLING">; /** * The Devlab is being started. * */ readonly STARTING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "FAILED" | "ERROR" | "IMAGE_PULLING">; /** * The Devlab is running. * */ readonly RUNNING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "FAILED" | "ERROR" | "IMAGE_PULLING">; /** * The Devlab is being stopped. * */ readonly STOPPING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "FAILED" | "ERROR" | "IMAGE_PULLING">; /** * The Devlab is being deleted. * */ readonly DELETING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "FAILED" | "ERROR" | "IMAGE_PULLING">; /** * The Devlab has been stopped. * */ readonly STOPPED: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "FAILED" | "ERROR" | "IMAGE_PULLING">; /** * The Devlab has failed. * */ readonly FAILED: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "FAILED" | "ERROR" | "IMAGE_PULLING">; /** * The Devlab encountered an error. * */ readonly ERROR: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "FAILED" | "ERROR" | "IMAGE_PULLING">; /** * The Devlab is pulling an image (STARTING -> IMAGE_PULLING -> RUNNING). * */ readonly IMAGE_PULLING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "FAILED" | "ERROR" | "IMAGE_PULLING">; } /** Defines the runtime API for {@link DevlabStatus_State}. */ export type DevlabStatus_StateClass = EnumClass<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "FAILED" | "ERROR" | "IMAGE_PULLING"> & DevlabStatus_StateValueMembers; /** Converts and creates {@link DevlabStatus_State} values. */ export declare const DevlabStatus_State: DevlabStatus_StateClass; /** * Devlab instance state. * */ export type DevlabInstanceStatus_State = EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "FAILED" | "ERROR" | "IMAGE_PULLING">; /** Defines the static values of {@link DevlabInstanceStatus_State}. */ export interface DevlabInstanceStatus_StateValueMembers { /** * The service did not report the instance's state. * */ readonly STATE_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "FAILED" | "ERROR" | "IMAGE_PULLING">; /** * The Devlab is creating resources. * */ readonly PROVISIONING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "FAILED" | "ERROR" | "IMAGE_PULLING">; /** * The Devlab is being started. * */ readonly STARTING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "FAILED" | "ERROR" | "IMAGE_PULLING">; /** * The Devlab is running. * */ readonly RUNNING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "FAILED" | "ERROR" | "IMAGE_PULLING">; /** * The Devlab is being stopped. * */ readonly STOPPING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "FAILED" | "ERROR" | "IMAGE_PULLING">; /** * The Devlab is being deleted. * */ readonly DELETING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "FAILED" | "ERROR" | "IMAGE_PULLING">; /** * The Devlab has been stopped. * */ readonly STOPPED: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "FAILED" | "ERROR" | "IMAGE_PULLING">; /** * The Devlab has failed. * */ readonly FAILED: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "FAILED" | "ERROR" | "IMAGE_PULLING">; /** * The Devlab encountered an error. * */ readonly ERROR: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "FAILED" | "ERROR" | "IMAGE_PULLING">; /** * The Devlab is pulling an image (STARTING -> IMAGE_PULLING -> RUNNING). * */ readonly IMAGE_PULLING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "FAILED" | "ERROR" | "IMAGE_PULLING">; } /** Defines the runtime API for {@link DevlabInstanceStatus_State}. */ export type DevlabInstanceStatus_StateClass = EnumClass<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "FAILED" | "ERROR" | "IMAGE_PULLING"> & DevlabInstanceStatus_StateValueMembers; /** Converts and creates {@link DevlabInstanceStatus_State} values. */ export declare const DevlabInstanceStatus_State: DevlabInstanceStatus_StateClass; /** * Represents an interactive development environment backed by Serverless infrastructure. * */ export interface Devlab { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.Devlab"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * The metadata of the Devlab. * */ metadata?: ResourceMetadata | undefined; /** * The configuration of the Devlab. * */ spec?: DevlabSpec | undefined; /** * The current status of the Devlab. * */ status?: DevlabStatus | undefined; } /** Encodes, decodes, converts, and creates {@link Devlab} messages. */ export declare const Devlab: MessageFns; /** * DevlabSpec defines an interactive workload that will be run. * */ export interface DevlabSpec { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.DevlabSpec"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * The Docker image to use for the Devlab's container. * * Required unless `template` is set: the template declares the image. * */ image: string; /** * Specifies the environment variables for the Devlab's container. * */ environmentVariables: DevlabSpec_EnvironmentVariable[]; /** * Specifies the ports that the Devlab exposes. * */ ports: DevlabSpec_Port[]; /** * The entrypoint command for the Devlab's container. * */ containerCommand: string; /** * The arguments to pass to the entrypoint command. * */ args: string; /** * The working directory for the Devlab's container. * */ workingDir: string; /** * Extra volumes to be mounted into the Devlab container. * */ volumes: DevlabSpec_VolumeMount[]; /** * Registry credentials for private Docker registry. * */ registryCredentials?: DevlabSpec_RegistryCredentials | undefined; /** * Compute platform that the Devlab will be run on. * */ platform: string; /** * Compute preset that the Devlab will be run on. * */ preset: string; /** * Shared memory size in bytes for the Devlab's container. * */ shmSizeBytes: Long; /** * Disk spec for the main disk of the Devlab runtime VM. * */ disk?: DevlabSpec_DiskSpec | undefined; /** * Subnet ID where the Devlab will be deployed. * */ subnetId: string; /** * Whether to assign a public IP to the Devlab runtime VM. * */ publicIp: boolean; /** * Public keys to be authorized for SSH access to the Devlab. * */ sshAuthorizedKeys: string[]; /** * Primary workspace storage for user state. * */ workspace?: DevlabSpec_Workspace | undefined; /** * Primary web route exposed through the managed HTTPS endpoint. * * Required unless `template` is set: the template declares the primary * web UI port. * */ primaryRoute?: DevlabSpec_PrimaryRoute | undefined; /** * Template that defines the Devlab's container. * * When set, the template declares the container shape: image, entrypoint * command, arguments, working directory, ports, optional shared memory size, * the primary web route, and the default workspace path. The spec must leave * image, container command, arguments, working directory, and primary route * empty. Environment variables and ports extend the template-declared ones, * `workspace.container_path` may override the template default, and * `shm_size_bytes` may be set only when the template leaves it unset. * * The template is consumed at creation time: read methods return the * rendered container shape instead of the template reference. * */ template?: DevlabSpec_Template | undefined; /** * Small config files injected into the container before the user process * starts. Intended for configs, not datasets. Read methods return target * paths. File content is returned only by Get with view SECRET. * */ injectedFiles: DevlabSpec_FileInjection[]; /** * The MysteryBox secret that contains the authentication token under the `AUTH_TOKEN` payload key. * This field enables an authentication proxy for the Devlab's HTTP ports. * The proxy rejects requests without an `Authorization: Bearer ` header that contains the matching token. * If absent, Serverless does not add this bearer-token check. * */ authTokenMysteryboxSecret?: DevlabSpec_MysteryBoxSecretRef | undefined; } /** Encodes, decodes, converts, and creates {@link DevlabSpec} messages. */ export declare const DevlabSpec: MessageFns; /** * EnvironmentVariable defines an environment variable for the Devlab's container. * */ export interface DevlabSpec_EnvironmentVariable { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.DevlabSpec.EnvironmentVariable"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * The name of the environment variable. * */ name: string; /** Contains the selected value for the `value_source` protobuf oneof. */ valueSource?: { $case: "value"; value: string; } | { $case: "mysteryboxSecret"; mysteryboxSecret: DevlabSpec_MysteryBoxSecretRef; } | undefined; } /** Encodes, decodes, converts, and creates {@link DevlabSpec_EnvironmentVariable} messages. */ export declare const DevlabSpec_EnvironmentVariable: MessageFns; /** Represents the `nebius.ai.v1.DevlabSpec.Port` protobuf message. */ export interface DevlabSpec_Port { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.DevlabSpec.Port"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Container port. * */ containerPort: number; /** * Host port. * * Set to 0 to use the same value as container_port. * */ hostPort: number; /** * Port's protocol. * */ protocol: DevlabSpec_Port_Protocol; } /** Encodes, decodes, converts, and creates {@link DevlabSpec_Port} messages. */ export declare const DevlabSpec_Port: MessageFns; /** * VolumeMount represents an extra volume mount for the Devlab container. * */ export interface DevlabSpec_VolumeMount { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.DevlabSpec.VolumeMount"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Source of the volume mount. * * Can be a name or an ID of Nebius Storage bucket or filesystem, * or an S3 URI (e.g. "s3://bucket-name") when using external S3 storage. * */ source: string; /** * Path inside the source volume. * * Optional. * */ sourcePath: string; /** * Path inside the Devlab container where the volume is mounted. * * Must be a clean absolute path: root, trailing slashes, empty path * segments, "." and ".." are not allowed. * */ containerPath: string; /** * Mount mode. * */ mode: DevlabSpec_VolumeMount_Mode; /** * Source Config * */ sourceConfig?: { $case: "s3Config"; s3Config: DevlabSpec_VolumeMount_S3Config; } | undefined; } /** Encodes, decodes, converts, and creates {@link DevlabSpec_VolumeMount} messages. */ export declare const DevlabSpec_VolumeMount: MessageFns; /** * Config for accessing an external S3-compatible storage. * * The bucket name is specified in the `source` field as an S3 URI. * */ export interface DevlabSpec_VolumeMount_S3Config { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.DevlabSpec.VolumeMount.S3Config"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * S3-compatible endpoint URL (e.g. "https://s3.amazonaws.com"). * */ endpoint: string; /** * S3 region. * */ region: string; /** * Reference to a MysteryBox secret containing S3 credentials. * */ mysteryboxSecret?: DevlabSpec_MysteryBoxSecretRef | undefined; } /** Encodes, decodes, converts, and creates {@link DevlabSpec_VolumeMount_S3Config} messages. */ export declare const DevlabSpec_VolumeMount_S3Config: MessageFns; /** Represents the `nebius.ai.v1.DevlabSpec.DiskSpec` protobuf message. */ export interface DevlabSpec_DiskSpec { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.DevlabSpec.DiskSpec"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Disk type. * */ type: DiskSpec_DiskType; /** * Disk size in bytes. * */ sizeBytes: Long; } /** Encodes, decodes, converts, and creates {@link DevlabSpec_DiskSpec} messages. */ export declare const DevlabSpec_DiskSpec: MessageFns; /** Represents the `nebius.ai.v1.DevlabSpec.RegistryCredentials` protobuf message. */ export interface DevlabSpec_RegistryCredentials { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.DevlabSpec.RegistryCredentials"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Secret version storing the registry credentials. * Must have keys "REGISTRY_USERNAME" and "REGISTRY_PASSWORD". * */ mysteryboxSecretVersion: string; } /** Encodes, decodes, converts, and creates {@link DevlabSpec_RegistryCredentials} messages. */ export declare const DevlabSpec_RegistryCredentials: MessageFns; /** Represents the `nebius.ai.v1.DevlabSpec.Workspace` protobuf message. */ export interface DevlabSpec_Workspace { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.DevlabSpec.Workspace"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Path inside the Devlab container where the workspace is mounted. * * Must be a clean absolute path: root, trailing slashes, empty path * segments, "." and ".." are not allowed. * * Required unless the Devlab is created from a template: the template * declares the default workspace path, and a non-empty value overrides it. * */ containerPath: string; } /** Encodes, decodes, converts, and creates {@link DevlabSpec_Workspace} messages. */ export declare const DevlabSpec_Workspace: MessageFns; /** Represents the `nebius.ai.v1.DevlabSpec.PrimaryRoute` protobuf message. */ export interface DevlabSpec_PrimaryRoute { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.DevlabSpec.PrimaryRoute"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Container port that serves the primary web UI. * */ containerPort: number; } /** Encodes, decodes, converts, and creates {@link DevlabSpec_PrimaryRoute} messages. */ export declare const DevlabSpec_PrimaryRoute: MessageFns; /** * FileInjection materializes a small file inside the container at launch. * */ export interface DevlabSpec_FileInjection { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.DevlabSpec.FileInjection"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Absolute path inside the container where the content is written. * * Must be a clean absolute path: root, trailing slashes, empty path * segments, "." and ".." are not allowed. * */ containerPath: string; /** * File content. On create, must contain between 1 byte and 64 KiB * (one mystery box secret payload). * Returned only by Get with view SECRET. * */ content: Uint8Array; } /** Encodes, decodes, converts, and creates {@link DevlabSpec_FileInjection} messages. */ export declare const DevlabSpec_FileInjection: MessageFns; /** * Reference to a VM app template the Devlab's container is rendered from. * */ export interface DevlabSpec_Template { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.DevlabSpec.Template"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * VM app template ID. * */ id: string; /** * The values for the template's input fields, keyed by each TemplateInputField.id. * VmAppTemplateService.Get and List return these field definitions in VmAppTemplate.status.input_fields. * Each value must match its field's type: * - STRING: string_value. The value must satisfy the template's pattern, options, or unit format. * - INTEGER: number_value with an integer value within the template's bounds. * - BOOLEAN: bool_value. * - MYSTERYBOX_SECRET_VERSION: string_value with the secret version ID. * null_value and absent entries both omit the input. Required inputs cannot be omitted. * Optional inputs use the defaults from the template's input definition. * Explicit false, 0, and empty strings are values, not omitted inputs. The template's validation still applies. * Object and list values are not supported. Unknown field IDs have no effect. * Read methods do not return this map. * */ inputFieldValues: { [key: string]: any; }; } /** Encodes, decodes, converts, and creates {@link DevlabSpec_Template} messages. */ export declare const DevlabSpec_Template: MessageFns; /** * Reference to a MysteryBox secret. * */ export interface DevlabSpec_MysteryBoxSecretRef { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.DevlabSpec.MysteryBoxSecretRef"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * MysteryBox secret ID. * */ secretId: string; /** * MysteryBox secret version ID. * */ versionId: string; } /** Encodes, decodes, converts, and creates {@link DevlabSpec_MysteryBoxSecretRef} messages. */ export declare const DevlabSpec_MysteryBoxSecretRef: MessageFns; /** * DevlabStatus represents the status of a Devlab. * */ export interface DevlabStatus { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.DevlabStatus"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Private endpoints to access the workload. * */ privateEndpoints: string[]; /** * Managed HTTPS/TLS URLs the workload is reachable at, one per routable port. * * Populated only while the Devlab is RUNNING and its managed tunnel is ready; * empty otherwise. The URLs are not bearer secrets — Tunna/IAM authorizes * access on use — so they are returned to any caller that may read the Devlab. * */ publicEndpoints: string[]; /** * Status of individual Devlab runtime instances. * */ instances: DevlabInstanceStatus[]; /** * State of the Devlab. * */ state: DevlabStatus_State; /** * Details of the Devlab's state. * */ stateDetails?: DevlabStateDetails | undefined; } /** Encodes, decodes, converts, and creates {@link DevlabStatus} messages. */ export declare const DevlabStatus: MessageFns; /** * Devlab state details. * */ export interface DevlabStateDetails { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.DevlabStateDetails"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Short state description. * */ code: string; /** * Detailed human-readable description. * */ message: string; } /** Encodes, decodes, converts, and creates {@link DevlabStateDetails} messages. */ export declare const DevlabStateDetails: MessageFns; /** * DevlabInstanceStatus represents the status of a Devlab runtime instance. * */ export interface DevlabInstanceStatus { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.DevlabInstanceStatus"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * The current state of the Devlab's workload. * */ state: DevlabInstanceStatus_State; /** * ID of the compute instance running the Devlab. * */ computeInstanceId: string; /** * The current state of the compute instance. * */ computeInstanceState: InstanceStatus_InstanceState; /** * Private IP address of the instance. * */ privateIp: string; /** * Public IP address of the instance. * */ publicIp: string; } /** Encodes, decodes, converts, and creates {@link DevlabInstanceStatus} messages. */ export declare const DevlabInstanceStatus: MessageFns; /** * Controls whether injected-file content and unmasked inline S3 credential values are included. * */ export type GetEndpointRequest_View = EnumInstance<"UNRECOGNIZED" | "VIEW_UNSPECIFIED" | "SECRET">; /** Defines the static values of {@link GetEndpointRequest_View}. */ export interface GetEndpointRequest_ViewValueMembers { /** * Represents the `VIEW_UNSPECIFIED` protobuf enum value. */ readonly VIEW_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "VIEW_UNSPECIFIED" | "SECRET">; /** * Represents the `SECRET` protobuf enum value. */ readonly SECRET: EnumInstance<"UNRECOGNIZED" | "VIEW_UNSPECIFIED" | "SECRET">; } /** Defines the runtime API for {@link GetEndpointRequest_View}. */ export type GetEndpointRequest_ViewClass = EnumClass<"UNRECOGNIZED" | "VIEW_UNSPECIFIED" | "SECRET"> & GetEndpointRequest_ViewValueMembers; /** Converts and creates {@link GetEndpointRequest_View} values. */ export declare const GetEndpointRequest_View: GetEndpointRequest_ViewClass; /** Represents the `nebius.ai.v1.GetEndpointRequest` protobuf message. */ export interface GetEndpointRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.GetEndpointRequest"; /** 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; /** * SECRET includes injected-file content and unmasked inline S3 credentials and requires * resource.aiendpoint.getSensitiveData. * */ view: GetEndpointRequest_View; } /** Encodes, decodes, converts, and creates {@link GetEndpointRequest} messages. */ export declare const GetEndpointRequest: MessageFns; /** Represents the `nebius.ai.v1.GetEndpointByNameRequest` protobuf message. */ export interface GetEndpointByNameRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.GetEndpointByNameRequest"; /** 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 GetEndpointByNameRequest} messages. */ export declare const GetEndpointByNameRequest: MessageFns; /** Represents the `nebius.ai.v1.ListEndpointsRequest` protobuf message. */ export interface ListEndpointsRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.ListEndpointsRequest"; /** 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 ListEndpointsRequest} messages. */ export declare const ListEndpointsRequest: MessageFns; /** Represents the `nebius.ai.v1.CreateEndpointRequest` protobuf message. */ export interface CreateEndpointRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.CreateEndpointRequest"; /** 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?: EndpointSpec | undefined; /** * Dry run creation of the endpoint. * */ dryRun: boolean; } /** Encodes, decodes, converts, and creates {@link CreateEndpointRequest} messages. */ export declare const CreateEndpointRequest: MessageFns; /** Represents the `nebius.ai.v1.DeleteEndpointRequest` protobuf message. */ export interface DeleteEndpointRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.DeleteEndpointRequest"; /** 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 DeleteEndpointRequest} messages. */ export declare const DeleteEndpointRequest: MessageFns; /** Represents the `nebius.ai.v1.StartEndpointRequest` protobuf message. */ export interface StartEndpointRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.StartEndpointRequest"; /** 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 StartEndpointRequest} messages. */ export declare const StartEndpointRequest: MessageFns; /** Represents the `nebius.ai.v1.RestartEndpointRequest` protobuf message. */ export interface RestartEndpointRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.RestartEndpointRequest"; /** 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 RestartEndpointRequest} messages. */ export declare const RestartEndpointRequest: MessageFns; /** Represents the `nebius.ai.v1.StopEndpointRequest` protobuf message. */ export interface StopEndpointRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.StopEndpointRequest"; /** 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 StopEndpointRequest} messages. */ export declare const StopEndpointRequest: MessageFns; /** Represents the `nebius.ai.v1.ListEndpointsResponse` protobuf message. */ export interface ListEndpointsResponse { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.ListEndpointsResponse"; /** 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: Endpoint[]; /** Contains the `next_page_token` protobuf field. */ nextPageToken: string; } /** Encodes, decodes, converts, and creates {@link ListEndpointsResponse} messages. */ export declare const ListEndpointsResponse: MessageFns; /** * Defines the gRPC methods for the `nebius.ai.v1.EndpointService` service. */ export type EndpointServiceServiceDescription = typeof EndpointServiceServiceDescription; /** * Describes the gRPC methods for the `nebius.ai.v1.EndpointService` service. */ export declare const EndpointServiceServiceDescription: { readonly get: { readonly path: "/nebius.ai.v1.EndpointService/Get"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetEndpointRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => GetEndpointRequest; readonly responseSerialize: (value: Endpoint) => Buffer; readonly responseDeserialize: (value: Buffer) => Endpoint; }; readonly getByName: { readonly path: "/nebius.ai.v1.EndpointService/GetByName"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetEndpointByNameRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => GetEndpointByNameRequest; readonly responseSerialize: (value: Endpoint) => Buffer; readonly responseDeserialize: (value: Buffer) => Endpoint; }; readonly list: { readonly path: "/nebius.ai.v1.EndpointService/List"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListEndpointsRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => ListEndpointsRequest; readonly responseSerialize: (value: ListEndpointsResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListEndpointsResponse; }; readonly create: { readonly path: "/nebius.ai.v1.EndpointService/Create"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: CreateEndpointRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => CreateEndpointRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; readonly delete: { readonly path: "/nebius.ai.v1.EndpointService/Delete"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: DeleteEndpointRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => DeleteEndpointRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; readonly start: { readonly path: "/nebius.ai.v1.EndpointService/Start"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: StartEndpointRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => StartEndpointRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; readonly restart: { readonly path: "/nebius.ai.v1.EndpointService/Restart"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: RestartEndpointRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => RestartEndpointRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; readonly stop: { readonly path: "/nebius.ai.v1.EndpointService/Stop"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: StopEndpointRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => StopEndpointRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; }; /** * Handles server calls for the `nebius.ai.v1.EndpointService` service. */ export interface EndpointServiceServer extends UntypedServiceImplementation { /** * Returns the specified endpoint. * */ get: handleUnaryCall; /** * Returns the specified endpoint by name. * */ getByName: handleUnaryCall; /** * Retrieves a list of endpoints. * */ list: handleUnaryCall; /** * Creates an endpoint. * */ create: handleUnaryCall; /** * Deletes an endpoint. * */ delete: handleUnaryCall; /** * Starts an endpoint. * */ start: handleUnaryCall; /** * Restarts an endpoint. * */ restart: handleUnaryCall; /** * Stops an endpoint. * */ stop: handleUnaryCall; } /** * Defines the low-level gRPC client for the `nebius.ai.v1.EndpointService` service. */ export interface EndpointServiceBaseClient extends Client { /** * Returns the specified endpoint. * */ get(request: GetEndpointRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Endpoint) => void): ClientUnaryCall; /** * Returns the specified endpoint by name. * */ getByName(request: GetEndpointByNameRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Endpoint) => void): ClientUnaryCall; /** * Retrieves a list of endpoints. * */ list(request: ListEndpointsRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: ListEndpointsResponse) => void): ClientUnaryCall; /** * Creates an endpoint. * */ create(request: CreateEndpointRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Operation) => void): ClientUnaryCall; /** * Deletes an endpoint. * */ delete(request: DeleteEndpointRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Operation) => void): ClientUnaryCall; /** * Starts an endpoint. * */ start(request: StartEndpointRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Operation) => void): ClientUnaryCall; /** * Restarts an endpoint. * */ restart(request: RestartEndpointRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Operation) => void): ClientUnaryCall; /** * Stops an endpoint. * */ stop(request: StopEndpointRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Operation) => void): ClientUnaryCall; } /** * Creates low-level gRPC clients for the `nebius.ai.v1.EndpointService` service. */ export declare const EndpointServiceBaseClient: { /** Creates a low-level client for the service address. */ new (address: string, credentials: ChannelCredentials, options?: Partial): EndpointServiceBaseClient; /** Contains the gRPC service description. */ service: typeof EndpointServiceServiceDescription; /** Contains the fully qualified protobuf service name. */ serviceName: string; }; /** * Service to create/manage endpoints. * */ export interface EndpointService { /** Contains the fully qualified protobuf service name. */ $type: "nebius.ai.v1.EndpointService"; /** * Returns the specified endpoint. * */ get(request: GetEndpointRequest): SDKRequestClass; /** * Returns the specified endpoint. * */ get(request: GetEndpointRequest, metadata: Metadata): SDKRequestClass; /** * Returns the specified endpoint. * */ get(request: GetEndpointRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Returns the specified endpoint by name. * */ getByName(request: GetEndpointByNameRequest): SDKRequestClass; /** * Returns the specified endpoint by name. * */ getByName(request: GetEndpointByNameRequest, metadata: Metadata): SDKRequestClass; /** * Returns the specified endpoint by name. * */ getByName(request: GetEndpointByNameRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Retrieves a list of endpoints. * */ list(request: ListEndpointsRequest): SDKRequestClass; /** * Retrieves a list of endpoints. * */ list(request: ListEndpointsRequest, metadata: Metadata): SDKRequestClass; /** * Retrieves a list of endpoints. * */ list(request: ListEndpointsRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Creates an endpoint. * */ create(request: CreateEndpointRequest): SDKRequestClass>; /** * Creates an endpoint. * */ create(request: CreateEndpointRequest, metadata: Metadata): SDKRequestClass>; /** * Creates an endpoint. * */ create(request: CreateEndpointRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Deletes an endpoint. * */ delete(request: DeleteEndpointRequest): SDKRequestClass>; /** * Deletes an endpoint. * */ delete(request: DeleteEndpointRequest, metadata: Metadata): SDKRequestClass>; /** * Deletes an endpoint. * */ delete(request: DeleteEndpointRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Starts an endpoint. * */ start(request: StartEndpointRequest): SDKRequestClass>; /** * Starts an endpoint. * */ start(request: StartEndpointRequest, metadata: Metadata): SDKRequestClass>; /** * Starts an endpoint. * */ start(request: StartEndpointRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Restarts an endpoint. * */ restart(request: RestartEndpointRequest): SDKRequestClass>; /** * Restarts an endpoint. * */ restart(request: RestartEndpointRequest, metadata: Metadata): SDKRequestClass>; /** * Restarts an endpoint. * */ restart(request: RestartEndpointRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Stops an endpoint. * */ stop(request: StopEndpointRequest): SDKRequestClass>; /** * Stops an endpoint. * */ stop(request: StopEndpointRequest, metadata: Metadata): SDKRequestClass>; /** * Stops an endpoint. * */ stop(request: StopEndpointRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; } /** * Calls the `nebius.ai.v1.EndpointService` service through the Nebius SDK. */ export declare class EndpointService implements EndpointService { private sdk; $type: "nebius.ai.v1.EndpointService"; 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; /** * Returns the specified endpoint. * */ get(request: GetEndpointRequest): SDKRequestClass; /** * Returns the specified endpoint. * */ get(request: GetEndpointRequest, metadata: Metadata): SDKRequestClass; /** * Returns the specified endpoint. * */ get(request: GetEndpointRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Returns the specified endpoint by name. * */ getByName(request: GetEndpointByNameRequest): SDKRequestClass; /** * Returns the specified endpoint by name. * */ getByName(request: GetEndpointByNameRequest, metadata: Metadata): SDKRequestClass; /** * Returns the specified endpoint by name. * */ getByName(request: GetEndpointByNameRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Retrieves a list of endpoints. * */ list(request: ListEndpointsRequest): SDKRequestClass; /** * Retrieves a list of endpoints. * */ list(request: ListEndpointsRequest, metadata: Metadata): SDKRequestClass; /** * Retrieves a list of endpoints. * */ list(request: ListEndpointsRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Creates an endpoint. * */ create(request: CreateEndpointRequest): SDKRequestClass>; /** * Creates an endpoint. * */ create(request: CreateEndpointRequest, metadata: Metadata): SDKRequestClass>; /** * Creates an endpoint. * */ create(request: CreateEndpointRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Deletes an endpoint. * */ delete(request: DeleteEndpointRequest): SDKRequestClass>; /** * Deletes an endpoint. * */ delete(request: DeleteEndpointRequest, metadata: Metadata): SDKRequestClass>; /** * Deletes an endpoint. * */ delete(request: DeleteEndpointRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Starts an endpoint. * */ start(request: StartEndpointRequest): SDKRequestClass>; /** * Starts an endpoint. * */ start(request: StartEndpointRequest, metadata: Metadata): SDKRequestClass>; /** * Starts an endpoint. * */ start(request: StartEndpointRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Restarts an endpoint. * */ restart(request: RestartEndpointRequest): SDKRequestClass>; /** * Restarts an endpoint. * */ restart(request: RestartEndpointRequest, metadata: Metadata): SDKRequestClass>; /** * Restarts an endpoint. * */ restart(request: RestartEndpointRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Stops an endpoint. * */ stop(request: StopEndpointRequest): SDKRequestClass>; /** * Stops an endpoint. * */ stop(request: StopEndpointRequest, metadata: Metadata): SDKRequestClass>; /** * Stops an endpoint. * */ stop(request: StopEndpointRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; } /** * Represents protocol of the endpoint's port which will be exposed. * */ export type EndpointSpec_Port_Protocol = EnumInstance<"UNRECOGNIZED" | "PROTOCOL_UNSPECIFIED" | "HTTP" | "TCP" | "UDP">; /** Defines the static values of {@link EndpointSpec_Port_Protocol}. */ export interface EndpointSpec_Port_ProtocolValueMembers { /** * Represents the `PROTOCOL_UNSPECIFIED` protobuf enum value. */ readonly PROTOCOL_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "PROTOCOL_UNSPECIFIED" | "HTTP" | "TCP" | "UDP">; /** * HTTP protocol. * */ readonly HTTP: EnumInstance<"UNRECOGNIZED" | "PROTOCOL_UNSPECIFIED" | "HTTP" | "TCP" | "UDP">; /** * TCP protocol. * */ readonly TCP: EnumInstance<"UNRECOGNIZED" | "PROTOCOL_UNSPECIFIED" | "HTTP" | "TCP" | "UDP">; /** * UDP protocol. * */ readonly UDP: EnumInstance<"UNRECOGNIZED" | "PROTOCOL_UNSPECIFIED" | "HTTP" | "TCP" | "UDP">; } /** Defines the runtime API for {@link EndpointSpec_Port_Protocol}. */ export type EndpointSpec_Port_ProtocolClass = EnumClass<"UNRECOGNIZED" | "PROTOCOL_UNSPECIFIED" | "HTTP" | "TCP" | "UDP"> & EndpointSpec_Port_ProtocolValueMembers; /** Converts and creates {@link EndpointSpec_Port_Protocol} values. */ export declare const EndpointSpec_Port_Protocol: EndpointSpec_Port_ProtocolClass; /** * Mode that will be used to mount the volume. * */ export type EndpointSpec_VolumeMount_Mode = EnumInstance<"UNRECOGNIZED" | "MODE_UNSPECIFIED" | "READ_ONLY" | "READ_WRITE">; /** Defines the static values of {@link EndpointSpec_VolumeMount_Mode}. */ export interface EndpointSpec_VolumeMount_ModeValueMembers { /** * Represents the `MODE_UNSPECIFIED` protobuf enum value. */ readonly MODE_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "MODE_UNSPECIFIED" | "READ_ONLY" | "READ_WRITE">; /** * Read-only mode. * */ readonly READ_ONLY: EnumInstance<"UNRECOGNIZED" | "MODE_UNSPECIFIED" | "READ_ONLY" | "READ_WRITE">; /** * Read-write mode. * */ readonly READ_WRITE: EnumInstance<"UNRECOGNIZED" | "MODE_UNSPECIFIED" | "READ_ONLY" | "READ_WRITE">; } /** Defines the runtime API for {@link EndpointSpec_VolumeMount_Mode}. */ export type EndpointSpec_VolumeMount_ModeClass = EnumClass<"UNRECOGNIZED" | "MODE_UNSPECIFIED" | "READ_ONLY" | "READ_WRITE"> & EndpointSpec_VolumeMount_ModeValueMembers; /** Converts and creates {@link EndpointSpec_VolumeMount_Mode} values. */ export declare const EndpointSpec_VolumeMount_Mode: EndpointSpec_VolumeMount_ModeClass; /** * Endpoint state. * */ export type EndpointStatus_State = EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "ERROR" | "IMAGE_PULLING">; /** Defines the static values of {@link EndpointStatus_State}. */ export interface EndpointStatus_StateValueMembers { /** * Represents the `STATE_UNSPECIFIED` protobuf enum value. */ readonly STATE_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "ERROR" | "IMAGE_PULLING">; /** * The endpoint is creating resources. * */ readonly PROVISIONING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "ERROR" | "IMAGE_PULLING">; /** * The endpoint is being started. * */ readonly STARTING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "ERROR" | "IMAGE_PULLING">; /** * The endpoint is running. * */ readonly RUNNING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "ERROR" | "IMAGE_PULLING">; /** * The endpoint is being stopped. * */ readonly STOPPING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "ERROR" | "IMAGE_PULLING">; /** * The endpoint is being deleted. * */ readonly DELETING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "ERROR" | "IMAGE_PULLING">; /** * The endpoint has been stopped. * */ readonly STOPPED: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "ERROR" | "IMAGE_PULLING">; /** * The endpoint encountered an error. * */ readonly ERROR: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "ERROR" | "IMAGE_PULLING">; /** * The endpoint is pulling an image (STARTING -> IMAGE_PULLING -> RUNNING). * */ readonly IMAGE_PULLING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "ERROR" | "IMAGE_PULLING">; } /** Defines the runtime API for {@link EndpointStatus_State}. */ export type EndpointStatus_StateClass = EnumClass<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "ERROR" | "IMAGE_PULLING"> & EndpointStatus_StateValueMembers; /** Converts and creates {@link EndpointStatus_State} values. */ export declare const EndpointStatus_State: EndpointStatus_StateClass; /** * Endpoint instance state. * */ export type EndpointInstanceStatus_State = EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "FAILED" | "ERROR" | "IMAGE_PULLING">; /** Defines the static values of {@link EndpointInstanceStatus_State}. */ export interface EndpointInstanceStatus_StateValueMembers { /** * Represents the `STATE_UNSPECIFIED` protobuf enum value. */ readonly STATE_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "FAILED" | "ERROR" | "IMAGE_PULLING">; /** * The endpoint is creating resources. * */ readonly PROVISIONING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "FAILED" | "ERROR" | "IMAGE_PULLING">; /** * The endpoint is being started. * */ readonly STARTING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "FAILED" | "ERROR" | "IMAGE_PULLING">; /** * The endpoint is running. * */ readonly RUNNING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "FAILED" | "ERROR" | "IMAGE_PULLING">; /** * The endpoint is being stopped. * */ readonly STOPPING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "FAILED" | "ERROR" | "IMAGE_PULLING">; /** * The endpoint is being deleted. * */ readonly DELETING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "FAILED" | "ERROR" | "IMAGE_PULLING">; /** * The endpoint has been stopped. * */ readonly STOPPED: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "FAILED" | "ERROR" | "IMAGE_PULLING">; /** * The endpoint has failed. * */ readonly FAILED: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "FAILED" | "ERROR" | "IMAGE_PULLING">; /** * The endpoint encountered an error. * */ readonly ERROR: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "FAILED" | "ERROR" | "IMAGE_PULLING">; /** * The endpoint is pulling an image (STARTING -> IMAGE_PULLING -> RUNNING). * */ readonly IMAGE_PULLING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "FAILED" | "ERROR" | "IMAGE_PULLING">; } /** Defines the runtime API for {@link EndpointInstanceStatus_State}. */ export type EndpointInstanceStatus_StateClass = EnumClass<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "FAILED" | "ERROR" | "IMAGE_PULLING"> & EndpointInstanceStatus_StateValueMembers; /** Converts and creates {@link EndpointInstanceStatus_State} values. */ export declare const EndpointInstanceStatus_State: EndpointInstanceStatus_StateClass; /** * Represents an endpoint with a specified workload. * */ export interface Endpoint { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.Endpoint"; /** 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?: EndpointSpec | undefined; /** Contains the `status` protobuf field. */ status?: EndpointStatus | undefined; } /** Encodes, decodes, converts, and creates {@link Endpoint} messages. */ export declare const Endpoint: MessageFns; /** * EndpointSpec defines a endpoint that will be run. * */ export interface EndpointSpec { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.EndpointSpec"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * The Docker image to use for the endpoint's container. * */ image: string; /** * Specifies the environment variables for the endpoint's container. * */ environmentVariables: EndpointSpec_EnvironmentVariable[]; /** * Specifies the ports that the endpoint exposes. * */ ports: EndpointSpec_Port[]; /** * The entrypoint command for the endpoint's container. * */ containerCommand: string; /** * The arguments to pass to the entrypoint command. * */ args: string; /** * The working directory for the endpoint's container. * */ workingDir: string; /** * Volumes to be mounted into the endpoint's container. * */ volumes: EndpointSpec_VolumeMount[]; /** * Registry credentials for private Docker registry. * */ registryCredentials?: EndpointSpec_RegistryCredentials | undefined; /** * Compute platform that the endpoint will be run on. * */ platform: string; /** * Compute preset that the endpoint will be run on. * */ preset: string; /** * Shared memory size in bytes for the endpoint's container. * */ shmSizeBytes: Long; /** * Disk spec for the main disk of the endpoint. * */ disk?: EndpointSpec_DiskSpec | undefined; /** * Subnet ID where the endpoint will be deployed. * */ subnetId: string; /** * Whether to assign a public IP to the endpoint. * */ publicIp: boolean; /** * Public keys to be authorized for SSH access to the job. * */ sshAuthorizedKeys: string[]; /** * Whether to use a preemptible VM for the endpoint. * Preemptible VMs are cheaper but can be stopped by the platform at any time. * */ preemptible: boolean; /** * Authentication token needed to access the endpoint. * * Authentication can only be enabled if the endpoint exposes one and only one HTTP port. * * Mutually exclusive with `auth_token_mysterybox_secret`. * If not provided, authentication will be disabled. * */ authToken: string; /** * Secret storing the authentication token. * Mutually exclusive with `auth_token`. * Must reference a secret payload containing `AUTH_TOKEN`. * */ authTokenMysteryboxSecret?: EndpointSpec_MysteryBoxSecretRef | undefined; /** * Small config files injected into the container before the user process * starts. Intended for configs, not datasets. Read methods return target * paths. File content is returned only by Get with view SECRET. * */ injectedFiles: EndpointSpec_FileInjection[]; } /** Encodes, decodes, converts, and creates {@link EndpointSpec} messages. */ export declare const EndpointSpec: MessageFns; /** * EnvironmentVariable defines an environment variable for the endpoint's container. * */ export interface EndpointSpec_EnvironmentVariable { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.EndpointSpec.EnvironmentVariable"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * The name of the environment variable. * */ name: string; /** * Environment variable value. * Mutually exclusive with `mysterybox_secret`. * */ value: string; /** * Secret storing the environment variable value. * Mutually exclusive with `value`. * The value is read from the payload entry whose key matches the variable * name, or the first entry when no such key exists. * */ mysteryboxSecret?: EndpointSpec_MysteryBoxSecretRef | undefined; } /** Encodes, decodes, converts, and creates {@link EndpointSpec_EnvironmentVariable} messages. */ export declare const EndpointSpec_EnvironmentVariable: MessageFns; /** Represents the `nebius.ai.v1.EndpointSpec.Port` protobuf message. */ export interface EndpointSpec_Port { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.EndpointSpec.Port"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Container port. * */ containerPort: number; /** * Host port. * * If not specified, will be same as container_port. * */ hostPort: number; /** * Port's protocol. * */ protocol: EndpointSpec_Port_Protocol; } /** Encodes, decodes, converts, and creates {@link EndpointSpec_Port} messages. */ export declare const EndpointSpec_Port: MessageFns; /** * VolumeMount represents a volume mount for the endpoint's container. * */ export interface EndpointSpec_VolumeMount { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.EndpointSpec.VolumeMount"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Source of the volume mount. * * Can be a name or an ID of Nebius Storage bucket or filesystem, * or an S3 URI (e.g. "s3://bucket-name") when using external S3 storage. * */ source: string; /** * Path inside the source volume. * * Optional. * */ sourcePath: string; /** * Path inside the endpoint's container where the volume is mounted. * * Must be an absolute path. * */ containerPath: string; /** * Mount mode. * */ mode: EndpointSpec_VolumeMount_Mode; /** * Source Config * */ sourceConfig?: { $case: "s3Config"; s3Config: EndpointSpec_VolumeMount_S3Config; } | undefined; } /** Encodes, decodes, converts, and creates {@link EndpointSpec_VolumeMount} messages. */ export declare const EndpointSpec_VolumeMount: MessageFns; /** * Config for accessing an external S3-compatible storage. * * The bucket name is specified in the `source` field as an S3 URI. * */ export interface EndpointSpec_VolumeMount_S3Config { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.EndpointSpec.VolumeMount.S3Config"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * S3-compatible endpoint URL (e.g. "https://s3.amazonaws.com"). * */ endpoint: string; /** * S3 region. * */ region: string; /** * Authentication method. * */ auth?: { $case: "credentials"; credentials: EndpointSpec_VolumeMount_S3Config_S3Credentials; } | { $case: "mysteryboxSecret"; mysteryboxSecret: EndpointSpec_VolumeMount_S3Config_MysteryBoxSecretRef; } | undefined; } /** Encodes, decodes, converts, and creates {@link EndpointSpec_VolumeMount_S3Config} messages. */ export declare const EndpointSpec_VolumeMount_S3Config: MessageFns; /** * Inline S3 credentials. * */ export interface EndpointSpec_VolumeMount_S3Config_S3Credentials { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.EndpointSpec.VolumeMount.S3Config.S3Credentials"; /** 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; /** * Session token (optional, for temporary credentials). * */ sessionToken: string; } /** Encodes, decodes, converts, and creates {@link EndpointSpec_VolumeMount_S3Config_S3Credentials} messages. */ export declare const EndpointSpec_VolumeMount_S3Config_S3Credentials: MessageFns; /** * Reference to a MysteryBox secret. * */ export interface EndpointSpec_VolumeMount_S3Config_MysteryBoxSecretRef { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.EndpointSpec.VolumeMount.S3Config.MysteryBoxSecretRef"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * MysteryBox secret ID. * */ secretId: string; /** * MysteryBox secret version ID. * */ versionId: string; } /** Encodes, decodes, converts, and creates {@link EndpointSpec_VolumeMount_S3Config_MysteryBoxSecretRef} messages. */ export declare const EndpointSpec_VolumeMount_S3Config_MysteryBoxSecretRef: MessageFns; /** Represents the `nebius.ai.v1.EndpointSpec.DiskSpec` protobuf message. */ export interface EndpointSpec_DiskSpec { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.EndpointSpec.DiskSpec"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Disk type. * */ type: DiskSpec_DiskType; /** * Disk size in bytes. * */ sizeBytes: Long; } /** Encodes, decodes, converts, and creates {@link EndpointSpec_DiskSpec} messages. */ export declare const EndpointSpec_DiskSpec: MessageFns; /** Represents the `nebius.ai.v1.EndpointSpec.RegistryCredentials` protobuf message. */ export interface EndpointSpec_RegistryCredentials { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.EndpointSpec.RegistryCredentials"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Registry username for private Docker registry. * */ username: string; /** * Registry password for private Docker registry. * */ password: string; /** * Secret version storing the registry credentials. * Must have keys "REGISTRY_USERNAME" and "REGISTRY_PASSWORD". * */ mysteryboxSecretVersion: string; } /** Encodes, decodes, converts, and creates {@link EndpointSpec_RegistryCredentials} messages. */ export declare const EndpointSpec_RegistryCredentials: MessageFns; /** * FileInjection materializes a small file inside the container at launch. * */ export interface EndpointSpec_FileInjection { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.EndpointSpec.FileInjection"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Absolute path inside the container where the content is written. * * Must be a clean absolute path: root, trailing slashes, empty path * segments, "." and ".." are not allowed. * */ containerPath: string; /** * File content. On create, must contain between 1 byte and 64 KiB * (one mystery box secret payload). * Returned only by Get with view SECRET. * */ content: Uint8Array; } /** Encodes, decodes, converts, and creates {@link EndpointSpec_FileInjection} messages. */ export declare const EndpointSpec_FileInjection: MessageFns; /** * Reference to a MysteryBox secret. * */ export interface EndpointSpec_MysteryBoxSecretRef { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.EndpointSpec.MysteryBoxSecretRef"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * MysteryBox secret ID. * */ secretId: string; /** * MysteryBox secret version ID. * */ versionId: string; } /** Encodes, decodes, converts, and creates {@link EndpointSpec_MysteryBoxSecretRef} messages. */ export declare const EndpointSpec_MysteryBoxSecretRef: MessageFns; /** * EndpointStatus represents the status of a VM app. * */ export interface EndpointStatus { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.EndpointStatus"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Private endpoints to access the workload. * */ privateEndpoints: string[]; /** * Public endpoints to access the workload. * */ publicEndpoints: string[]; /** * Status of individual endpoint instances. * */ instances: EndpointInstanceStatus[]; /** * State of the endpoint. * */ state: EndpointStatus_State; /** * Details of the endpoint's state. * */ stateDetails?: EndpointStateDetails | undefined; } /** Encodes, decodes, converts, and creates {@link EndpointStatus} messages. */ export declare const EndpointStatus: MessageFns; /** * Endpoint state details. * */ export interface EndpointStateDetails { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.EndpointStateDetails"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Short state description. * */ code: string; /** * Detailed human-readable description. * */ message: string; /** * Structured error details for the failure, if available. * For quota-related failures, `service_error.details.quota_failure` * is populated with the quota violations. * */ serviceError?: ServiceError | undefined; } /** Encodes, decodes, converts, and creates {@link EndpointStateDetails} messages. */ export declare const EndpointStateDetails: MessageFns; /** * EndpointInstanceStatus represents the status of a endpoint instance. * */ export interface EndpointInstanceStatus { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.EndpointInstanceStatus"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * The current state of the endpoint's workload. * */ state: EndpointInstanceStatus_State; /** * ID of the compute instance running the endpoint. * */ computeInstanceId: string; /** * The current state of the compute instance. * */ computeInstanceState: InstanceStatus_InstanceState; /** * Private IP address of the instance. * */ privateIp: string; /** * Public IP address of the instance. * */ publicIp: string; } /** Encodes, decodes, converts, and creates {@link EndpointInstanceStatus} messages. */ export declare const EndpointInstanceStatus: MessageFns; /** * Controls whether injected-file content and unmasked inline S3 credential values are included. * */ export type GetJobRequest_View = EnumInstance<"UNRECOGNIZED" | "VIEW_UNSPECIFIED" | "SECRET">; /** Defines the static values of {@link GetJobRequest_View}. */ export interface GetJobRequest_ViewValueMembers { /** * Represents the `VIEW_UNSPECIFIED` protobuf enum value. */ readonly VIEW_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "VIEW_UNSPECIFIED" | "SECRET">; /** * Represents the `SECRET` protobuf enum value. */ readonly SECRET: EnumInstance<"UNRECOGNIZED" | "VIEW_UNSPECIFIED" | "SECRET">; } /** Defines the runtime API for {@link GetJobRequest_View}. */ export type GetJobRequest_ViewClass = EnumClass<"UNRECOGNIZED" | "VIEW_UNSPECIFIED" | "SECRET"> & GetJobRequest_ViewValueMembers; /** Converts and creates {@link GetJobRequest_View} values. */ export declare const GetJobRequest_View: GetJobRequest_ViewClass; /** Represents the `nebius.ai.v1.GetJobRequest` protobuf message. */ export interface GetJobRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.GetJobRequest"; /** 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; /** * SECRET includes injected-file content and unmasked inline S3 credentials and requires * resource.aijob.getSensitiveData. * */ view: GetJobRequest_View; } /** Encodes, decodes, converts, and creates {@link GetJobRequest} messages. */ export declare const GetJobRequest: MessageFns; /** Represents the `nebius.ai.v1.GetJobByNameRequest` protobuf message. */ export interface GetJobByNameRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.GetJobByNameRequest"; /** 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 GetJobByNameRequest} messages. */ export declare const GetJobByNameRequest: MessageFns; /** Represents the `nebius.ai.v1.ListJobsRequest` protobuf message. */ export interface ListJobsRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.ListJobsRequest"; /** 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 ListJobsRequest} messages. */ export declare const ListJobsRequest: MessageFns; /** Represents the `nebius.ai.v1.CreateJobRequest` protobuf message. */ export interface CreateJobRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.CreateJobRequest"; /** 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?: JobSpec | undefined; /** * Dry run creation of the job. * */ dryRun: boolean; } /** Encodes, decodes, converts, and creates {@link CreateJobRequest} messages. */ export declare const CreateJobRequest: MessageFns; /** Represents the `nebius.ai.v1.DeleteJobRequest` protobuf message. */ export interface DeleteJobRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.DeleteJobRequest"; /** 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 DeleteJobRequest} messages. */ export declare const DeleteJobRequest: MessageFns; /** Represents the `nebius.ai.v1.CancelJobRequest` protobuf message. */ export interface CancelJobRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.CancelJobRequest"; /** 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 CancelJobRequest} messages. */ export declare const CancelJobRequest: MessageFns; /** Represents the `nebius.ai.v1.RestartJobRequest` protobuf message. */ export interface RestartJobRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.RestartJobRequest"; /** 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 RestartJobRequest} messages. */ export declare const RestartJobRequest: MessageFns; /** Represents the `nebius.ai.v1.ListJobsResponse` protobuf message. */ export interface ListJobsResponse { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.ListJobsResponse"; /** 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: Job[]; /** Contains the `next_page_token` protobuf field. */ nextPageToken: string; } /** Encodes, decodes, converts, and creates {@link ListJobsResponse} messages. */ export declare const ListJobsResponse: MessageFns; /** * Defines the gRPC methods for the `nebius.ai.v1.JobService` service. */ export type JobServiceServiceDescription = typeof JobServiceServiceDescription; /** * Describes the gRPC methods for the `nebius.ai.v1.JobService` service. */ export declare const JobServiceServiceDescription: { readonly get: { readonly path: "/nebius.ai.v1.JobService/Get"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetJobRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => GetJobRequest; readonly responseSerialize: (value: Job) => Buffer; readonly responseDeserialize: (value: Buffer) => Job; }; readonly getByName: { readonly path: "/nebius.ai.v1.JobService/GetByName"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetJobByNameRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => GetJobByNameRequest; readonly responseSerialize: (value: Job) => Buffer; readonly responseDeserialize: (value: Buffer) => Job; }; readonly list: { readonly path: "/nebius.ai.v1.JobService/List"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListJobsRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => ListJobsRequest; readonly responseSerialize: (value: ListJobsResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListJobsResponse; }; readonly create: { readonly path: "/nebius.ai.v1.JobService/Create"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: CreateJobRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => CreateJobRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; readonly delete: { readonly path: "/nebius.ai.v1.JobService/Delete"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: DeleteJobRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => DeleteJobRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; readonly cancel: { readonly path: "/nebius.ai.v1.JobService/Cancel"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: CancelJobRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => CancelJobRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; readonly restart: { readonly path: "/nebius.ai.v1.JobService/Restart"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: RestartJobRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => RestartJobRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; }; /** * Handles server calls for the `nebius.ai.v1.JobService` service. */ export interface JobServiceServer extends UntypedServiceImplementation { /** * Returns the specified job. * */ get: handleUnaryCall; /** * Returns the specified job by name. * */ getByName: handleUnaryCall; /** * Retrieves a list of jobs. * */ list: handleUnaryCall; /** * Creates a job. * */ create: handleUnaryCall; /** * Deletes a job. * */ delete: handleUnaryCall; /** * Cancels a job. * */ cancel: handleUnaryCall; /** * Restarts a job. * */ restart: handleUnaryCall; } /** * Defines the low-level gRPC client for the `nebius.ai.v1.JobService` service. */ export interface JobServiceBaseClient extends Client { /** * Returns the specified job. * */ get(request: GetJobRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Job) => void): ClientUnaryCall; /** * Returns the specified job by name. * */ getByName(request: GetJobByNameRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Job) => void): ClientUnaryCall; /** * Retrieves a list of jobs. * */ list(request: ListJobsRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: ListJobsResponse) => void): ClientUnaryCall; /** * Creates a job. * */ create(request: CreateJobRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Operation) => void): ClientUnaryCall; /** * Deletes a job. * */ delete(request: DeleteJobRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Operation) => void): ClientUnaryCall; /** * Cancels a job. * */ cancel(request: CancelJobRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Operation) => void): ClientUnaryCall; /** * Restarts a job. * */ restart(request: RestartJobRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Operation) => void): ClientUnaryCall; } /** * Creates low-level gRPC clients for the `nebius.ai.v1.JobService` service. */ export declare const JobServiceBaseClient: { /** Creates a low-level client for the service address. */ new (address: string, credentials: ChannelCredentials, options?: Partial): JobServiceBaseClient; /** Contains the gRPC service description. */ service: typeof JobServiceServiceDescription; /** Contains the fully qualified protobuf service name. */ serviceName: string; }; /** * Service to create/manage jobs. * */ export interface JobService { /** Contains the fully qualified protobuf service name. */ $type: "nebius.ai.v1.JobService"; /** * Returns the specified job. * */ get(request: GetJobRequest): SDKRequestClass; /** * Returns the specified job. * */ get(request: GetJobRequest, metadata: Metadata): SDKRequestClass; /** * Returns the specified job. * */ get(request: GetJobRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Returns the specified job by name. * */ getByName(request: GetJobByNameRequest): SDKRequestClass; /** * Returns the specified job by name. * */ getByName(request: GetJobByNameRequest, metadata: Metadata): SDKRequestClass; /** * Returns the specified job by name. * */ getByName(request: GetJobByNameRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Retrieves a list of jobs. * */ list(request: ListJobsRequest): SDKRequestClass; /** * Retrieves a list of jobs. * */ list(request: ListJobsRequest, metadata: Metadata): SDKRequestClass; /** * Retrieves a list of jobs. * */ list(request: ListJobsRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Creates a job. * */ create(request: CreateJobRequest): SDKRequestClass>; /** * Creates a job. * */ create(request: CreateJobRequest, metadata: Metadata): SDKRequestClass>; /** * Creates a job. * */ create(request: CreateJobRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Deletes a job. * */ delete(request: DeleteJobRequest): SDKRequestClass>; /** * Deletes a job. * */ delete(request: DeleteJobRequest, metadata: Metadata): SDKRequestClass>; /** * Deletes a job. * */ delete(request: DeleteJobRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Cancels a job. * */ cancel(request: CancelJobRequest): SDKRequestClass>; /** * Cancels a job. * */ cancel(request: CancelJobRequest, metadata: Metadata): SDKRequestClass>; /** * Cancels a job. * */ cancel(request: CancelJobRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Restarts a job. * */ restart(request: RestartJobRequest): SDKRequestClass>; /** * Restarts a job. * */ restart(request: RestartJobRequest, metadata: Metadata): SDKRequestClass>; /** * Restarts a job. * */ restart(request: RestartJobRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; } /** * Calls the `nebius.ai.v1.JobService` service through the Nebius SDK. */ export declare class JobService implements JobService { private sdk; $type: "nebius.ai.v1.JobService"; 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; /** * Returns the specified job. * */ get(request: GetJobRequest): SDKRequestClass; /** * Returns the specified job. * */ get(request: GetJobRequest, metadata: Metadata): SDKRequestClass; /** * Returns the specified job. * */ get(request: GetJobRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Returns the specified job by name. * */ getByName(request: GetJobByNameRequest): SDKRequestClass; /** * Returns the specified job by name. * */ getByName(request: GetJobByNameRequest, metadata: Metadata): SDKRequestClass; /** * Returns the specified job by name. * */ getByName(request: GetJobByNameRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Retrieves a list of jobs. * */ list(request: ListJobsRequest): SDKRequestClass; /** * Retrieves a list of jobs. * */ list(request: ListJobsRequest, metadata: Metadata): SDKRequestClass; /** * Retrieves a list of jobs. * */ list(request: ListJobsRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Creates a job. * */ create(request: CreateJobRequest): SDKRequestClass>; /** * Creates a job. * */ create(request: CreateJobRequest, metadata: Metadata): SDKRequestClass>; /** * Creates a job. * */ create(request: CreateJobRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Deletes a job. * */ delete(request: DeleteJobRequest): SDKRequestClass>; /** * Deletes a job. * */ delete(request: DeleteJobRequest, metadata: Metadata): SDKRequestClass>; /** * Deletes a job. * */ delete(request: DeleteJobRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Cancels a job. * */ cancel(request: CancelJobRequest): SDKRequestClass>; /** * Cancels a job. * */ cancel(request: CancelJobRequest, metadata: Metadata): SDKRequestClass>; /** * Cancels a job. * */ cancel(request: CancelJobRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Restarts a job. * */ restart(request: RestartJobRequest): SDKRequestClass>; /** * Restarts a job. * */ restart(request: RestartJobRequest, metadata: Metadata): SDKRequestClass>; /** * Restarts a job. * */ restart(request: RestartJobRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; } /** * Represents protocol of the job's port which will be exposed. * */ export type JobSpec_Port_Protocol = EnumInstance<"UNRECOGNIZED" | "PROTOCOL_UNSPECIFIED" | "HTTP" | "TCP" | "UDP">; /** Defines the static values of {@link JobSpec_Port_Protocol}. */ export interface JobSpec_Port_ProtocolValueMembers { /** * Represents the `PROTOCOL_UNSPECIFIED` protobuf enum value. */ readonly PROTOCOL_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "PROTOCOL_UNSPECIFIED" | "HTTP" | "TCP" | "UDP">; /** * HTTP protocol. * */ readonly HTTP: EnumInstance<"UNRECOGNIZED" | "PROTOCOL_UNSPECIFIED" | "HTTP" | "TCP" | "UDP">; /** * TCP protocol. * */ readonly TCP: EnumInstance<"UNRECOGNIZED" | "PROTOCOL_UNSPECIFIED" | "HTTP" | "TCP" | "UDP">; /** * UDP protocol. * */ readonly UDP: EnumInstance<"UNRECOGNIZED" | "PROTOCOL_UNSPECIFIED" | "HTTP" | "TCP" | "UDP">; } /** Defines the runtime API for {@link JobSpec_Port_Protocol}. */ export type JobSpec_Port_ProtocolClass = EnumClass<"UNRECOGNIZED" | "PROTOCOL_UNSPECIFIED" | "HTTP" | "TCP" | "UDP"> & JobSpec_Port_ProtocolValueMembers; /** Converts and creates {@link JobSpec_Port_Protocol} values. */ export declare const JobSpec_Port_Protocol: JobSpec_Port_ProtocolClass; /** * Mode that will be used to mount the volume. * */ export type JobSpec_VolumeMount_Mode = EnumInstance<"UNRECOGNIZED" | "MODE_UNSPECIFIED" | "READ_WRITE" | "READ_ONLY">; /** Defines the static values of {@link JobSpec_VolumeMount_Mode}. */ export interface JobSpec_VolumeMount_ModeValueMembers { /** * Represents the `MODE_UNSPECIFIED` protobuf enum value. */ readonly MODE_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "MODE_UNSPECIFIED" | "READ_WRITE" | "READ_ONLY">; /** * Read-write mode. * */ readonly READ_WRITE: EnumInstance<"UNRECOGNIZED" | "MODE_UNSPECIFIED" | "READ_WRITE" | "READ_ONLY">; /** * Read-only mode. * */ readonly READ_ONLY: EnumInstance<"UNRECOGNIZED" | "MODE_UNSPECIFIED" | "READ_WRITE" | "READ_ONLY">; } /** Defines the runtime API for {@link JobSpec_VolumeMount_Mode}. */ export type JobSpec_VolumeMount_ModeClass = EnumClass<"UNRECOGNIZED" | "MODE_UNSPECIFIED" | "READ_WRITE" | "READ_ONLY"> & JobSpec_VolumeMount_ModeValueMembers; /** Converts and creates {@link JobSpec_VolumeMount_Mode} values. */ export declare const JobSpec_VolumeMount_Mode: JobSpec_VolumeMount_ModeClass; /** * Job state. * */ export type JobStatus_State = EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "CANCELLING" | "DELETING" | "COMPLETED" | "FAILED" | "CANCELLED" | "ERROR" | "IMAGE_PULLING">; /** Defines the static values of {@link JobStatus_State}. */ export interface JobStatus_StateValueMembers { /** * Represents the `STATE_UNSPECIFIED` protobuf enum value. */ readonly STATE_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "CANCELLING" | "DELETING" | "COMPLETED" | "FAILED" | "CANCELLED" | "ERROR" | "IMAGE_PULLING">; /** * The job is creating resources. * */ readonly PROVISIONING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "CANCELLING" | "DELETING" | "COMPLETED" | "FAILED" | "CANCELLED" | "ERROR" | "IMAGE_PULLING">; /** * The job is being started. * */ readonly STARTING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "CANCELLING" | "DELETING" | "COMPLETED" | "FAILED" | "CANCELLED" | "ERROR" | "IMAGE_PULLING">; /** * The job is running. * */ readonly RUNNING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "CANCELLING" | "DELETING" | "COMPLETED" | "FAILED" | "CANCELLED" | "ERROR" | "IMAGE_PULLING">; /** * The job is being cancelled. * */ readonly CANCELLING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "CANCELLING" | "DELETING" | "COMPLETED" | "FAILED" | "CANCELLED" | "ERROR" | "IMAGE_PULLING">; /** * The job is being deleted. * */ readonly DELETING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "CANCELLING" | "DELETING" | "COMPLETED" | "FAILED" | "CANCELLED" | "ERROR" | "IMAGE_PULLING">; /** * The job has successfully completed. * */ readonly COMPLETED: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "CANCELLING" | "DELETING" | "COMPLETED" | "FAILED" | "CANCELLED" | "ERROR" | "IMAGE_PULLING">; /** * The job has failed. * */ readonly FAILED: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "CANCELLING" | "DELETING" | "COMPLETED" | "FAILED" | "CANCELLED" | "ERROR" | "IMAGE_PULLING">; /** * The job has been cancelled. * */ readonly CANCELLED: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "CANCELLING" | "DELETING" | "COMPLETED" | "FAILED" | "CANCELLED" | "ERROR" | "IMAGE_PULLING">; /** * The job encountered an internal error. * */ readonly ERROR: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "CANCELLING" | "DELETING" | "COMPLETED" | "FAILED" | "CANCELLED" | "ERROR" | "IMAGE_PULLING">; /** * The job is pulling an image (STARTING -> IMAGE_PULLING -> RUNNING). * */ readonly IMAGE_PULLING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "CANCELLING" | "DELETING" | "COMPLETED" | "FAILED" | "CANCELLED" | "ERROR" | "IMAGE_PULLING">; } /** Defines the runtime API for {@link JobStatus_State}. */ export type JobStatus_StateClass = EnumClass<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "CANCELLING" | "DELETING" | "COMPLETED" | "FAILED" | "CANCELLED" | "ERROR" | "IMAGE_PULLING"> & JobStatus_StateValueMembers; /** Converts and creates {@link JobStatus_State} values. */ export declare const JobStatus_State: JobStatus_StateClass; /** * Job instance state. * */ export type JobInstanceStatus_State = EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "COMPLETING" | "CANCELLING" | "DELETING" | "COMPLETED" | "FAILED" | "CANCELLED" | "ERROR" | "IMAGE_PULLING">; /** Defines the static values of {@link JobInstanceStatus_State}. */ export interface JobInstanceStatus_StateValueMembers { /** * Represents the `STATE_UNSPECIFIED` protobuf enum value. */ readonly STATE_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "COMPLETING" | "CANCELLING" | "DELETING" | "COMPLETED" | "FAILED" | "CANCELLED" | "ERROR" | "IMAGE_PULLING">; /** * The job is creating resources. * */ readonly PROVISIONING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "COMPLETING" | "CANCELLING" | "DELETING" | "COMPLETED" | "FAILED" | "CANCELLED" | "ERROR" | "IMAGE_PULLING">; /** * The job is being started. * */ readonly STARTING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "COMPLETING" | "CANCELLING" | "DELETING" | "COMPLETED" | "FAILED" | "CANCELLED" | "ERROR" | "IMAGE_PULLING">; /** * The job is running. * */ readonly RUNNING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "COMPLETING" | "CANCELLING" | "DELETING" | "COMPLETED" | "FAILED" | "CANCELLED" | "ERROR" | "IMAGE_PULLING">; /** * The job is completing. * */ readonly COMPLETING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "COMPLETING" | "CANCELLING" | "DELETING" | "COMPLETED" | "FAILED" | "CANCELLED" | "ERROR" | "IMAGE_PULLING">; /** * The job is being cancelled. * */ readonly CANCELLING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "COMPLETING" | "CANCELLING" | "DELETING" | "COMPLETED" | "FAILED" | "CANCELLED" | "ERROR" | "IMAGE_PULLING">; /** * The job is being deleted. * */ readonly DELETING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "COMPLETING" | "CANCELLING" | "DELETING" | "COMPLETED" | "FAILED" | "CANCELLED" | "ERROR" | "IMAGE_PULLING">; /** * The job has successfully completed. * */ readonly COMPLETED: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "COMPLETING" | "CANCELLING" | "DELETING" | "COMPLETED" | "FAILED" | "CANCELLED" | "ERROR" | "IMAGE_PULLING">; /** * The job has failed. * */ readonly FAILED: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "COMPLETING" | "CANCELLING" | "DELETING" | "COMPLETED" | "FAILED" | "CANCELLED" | "ERROR" | "IMAGE_PULLING">; /** * The job has been cancelled. * */ readonly CANCELLED: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "COMPLETING" | "CANCELLING" | "DELETING" | "COMPLETED" | "FAILED" | "CANCELLED" | "ERROR" | "IMAGE_PULLING">; /** * The job encountered an internal error. * */ readonly ERROR: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "COMPLETING" | "CANCELLING" | "DELETING" | "COMPLETED" | "FAILED" | "CANCELLED" | "ERROR" | "IMAGE_PULLING">; /** * The job is pulling an image (STARTING -> IMAGE_PULLING -> RUNNING). * */ readonly IMAGE_PULLING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "COMPLETING" | "CANCELLING" | "DELETING" | "COMPLETED" | "FAILED" | "CANCELLED" | "ERROR" | "IMAGE_PULLING">; } /** Defines the runtime API for {@link JobInstanceStatus_State}. */ export type JobInstanceStatus_StateClass = EnumClass<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "COMPLETING" | "CANCELLING" | "DELETING" | "COMPLETED" | "FAILED" | "CANCELLED" | "ERROR" | "IMAGE_PULLING"> & JobInstanceStatus_StateValueMembers; /** Converts and creates {@link JobInstanceStatus_State} values. */ export declare const JobInstanceStatus_State: JobInstanceStatus_StateClass; /** * Represents a job with a specified workload. * */ export interface Job { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.Job"; /** 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?: JobSpec | undefined; /** Contains the `status` protobuf field. */ status?: JobStatus | undefined; } /** Encodes, decodes, converts, and creates {@link Job} messages. */ export declare const Job: MessageFns; /** * JobSpec defines a job that will be run. * */ export interface JobSpec { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.JobSpec"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * The Docker image to use for the job's container. * */ image: string; /** * Specifies the environment variables for the job's container. * */ environmentVariables: JobSpec_EnvironmentVariable[]; /** * Specifies the ports that the job exposes. * */ ports: JobSpec_Port[]; /** * The entrypoint command for the job's container. * */ containerCommand: string; /** * The arguments to pass to the entrypoint command. * */ args: string; /** * The working directory for the job's container. * */ workingDir: string; /** * Volumes to be mounted into the job's container. * */ volumes: JobSpec_VolumeMount[]; /** * Registry credentials for private Docker registry. * */ registryCredentials?: JobSpec_RegistryCredentials | undefined; /** * Compute platform that the job will be run on. * */ platform: string; /** * Compute preset that the job will be run on. * */ preset: string; /** * Shared memory size in bytes for the job's container. * */ shmSizeBytes: Long; /** * Disk spec for the main disk of the job. * */ disk?: JobSpec_DiskSpec | undefined; /** * Subnet ID where the job will be deployed. * */ subnetId: string; /** * Whether to assign a public IP to the job. * */ publicIp: boolean; /** * Public keys to be authorized for SSH access to the job. * */ sshAuthorizedKeys: string[]; /** * Whether to use a preemptible VM for the job. * Preemptible VMs are cheaper but can be stopped by the platform at any time. * */ preemptible: boolean; /** * Restart attempts for the job. * */ restartAttempts: Long; /** * Job timeout. * */ timeout?: Duration | undefined; /** * Small config files injected into the container before the user process * starts. Intended for configs, not datasets. Read methods return target * paths. File content is returned only by Get with view SECRET. * */ injectedFiles: JobSpec_FileInjection[]; } /** Encodes, decodes, converts, and creates {@link JobSpec} messages. */ export declare const JobSpec: MessageFns; /** * EnvironmentVariable defines an environment variable for the endpoint's container. * */ export interface JobSpec_EnvironmentVariable { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.JobSpec.EnvironmentVariable"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * The name of the environment variable. * */ name: string; /** * Environment variable value. * Mutually exclusive with `mysterybox_secret`. * */ value: string; /** * Secret storing the environment variable value. * Mutually exclusive with `value`. * The value is read from the payload entry whose key matches the variable * name, or the first entry when no such key exists. * */ mysteryboxSecret?: JobSpec_MysteryBoxSecretRef | undefined; } /** Encodes, decodes, converts, and creates {@link JobSpec_EnvironmentVariable} messages. */ export declare const JobSpec_EnvironmentVariable: MessageFns; /** Represents the `nebius.ai.v1.JobSpec.Port` protobuf message. */ export interface JobSpec_Port { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.JobSpec.Port"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Container port. * */ containerPort: number; /** * Host port. * * If not specified, will be same as container_port. * */ hostPort: number; /** * Port's protocol. * */ protocol: JobSpec_Port_Protocol; } /** Encodes, decodes, converts, and creates {@link JobSpec_Port} messages. */ export declare const JobSpec_Port: MessageFns; /** * VolumeMount represents a volume mount for the endpoint's container. * */ export interface JobSpec_VolumeMount { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.JobSpec.VolumeMount"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Source of the volume mount. * * Can be a name or an ID of Nebius Storage bucket or filesystem, * or an S3 URI (e.g. "s3://bucket-name") when using external S3 storage. * */ source: string; /** * Path inside the source volume. * * Optional. * */ sourcePath: string; /** * Path inside the endpoint's container where the volume is mounted. * * Must be an absolute path. * */ containerPath: string; /** * Mount mode. * */ mode: JobSpec_VolumeMount_Mode; /** * Source Config * */ sourceConfig?: { $case: "s3Config"; s3Config: JobSpec_VolumeMount_S3Config; } | undefined; } /** Encodes, decodes, converts, and creates {@link JobSpec_VolumeMount} messages. */ export declare const JobSpec_VolumeMount: MessageFns; /** * Config for accessing an external S3-compatible storage. * * The bucket name is specified in the `source` field as an S3 URI. * */ export interface JobSpec_VolumeMount_S3Config { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.JobSpec.VolumeMount.S3Config"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * S3-compatible endpoint URL (e.g. "https://s3.amazonaws.com"). * */ endpoint: string; /** * S3 region. * */ region: string; /** * Authentication method. * */ auth?: { $case: "credentials"; credentials: JobSpec_VolumeMount_S3Config_S3Credentials; } | { $case: "mysteryboxSecret"; mysteryboxSecret: JobSpec_VolumeMount_S3Config_MysteryBoxSecretRef; } | undefined; } /** Encodes, decodes, converts, and creates {@link JobSpec_VolumeMount_S3Config} messages. */ export declare const JobSpec_VolumeMount_S3Config: MessageFns; /** * Inline S3 credentials. * */ export interface JobSpec_VolumeMount_S3Config_S3Credentials { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.JobSpec.VolumeMount.S3Config.S3Credentials"; /** 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; /** * Session token (optional, for temporary credentials). * */ sessionToken: string; } /** Encodes, decodes, converts, and creates {@link JobSpec_VolumeMount_S3Config_S3Credentials} messages. */ export declare const JobSpec_VolumeMount_S3Config_S3Credentials: MessageFns; /** * Reference to a MysteryBox secret. * */ export interface JobSpec_VolumeMount_S3Config_MysteryBoxSecretRef { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.JobSpec.VolumeMount.S3Config.MysteryBoxSecretRef"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * MysteryBox secret ID. * */ secretId: string; /** * MysteryBox secret version ID. * */ versionId: string; } /** Encodes, decodes, converts, and creates {@link JobSpec_VolumeMount_S3Config_MysteryBoxSecretRef} messages. */ export declare const JobSpec_VolumeMount_S3Config_MysteryBoxSecretRef: MessageFns; /** Represents the `nebius.ai.v1.JobSpec.DiskSpec` protobuf message. */ export interface JobSpec_DiskSpec { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.JobSpec.DiskSpec"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Disk type. * */ type: DiskSpec_DiskType; /** * Disk size in bytes. * */ sizeBytes: Long; } /** Encodes, decodes, converts, and creates {@link JobSpec_DiskSpec} messages. */ export declare const JobSpec_DiskSpec: MessageFns; /** Represents the `nebius.ai.v1.JobSpec.RegistryCredentials` protobuf message. */ export interface JobSpec_RegistryCredentials { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.JobSpec.RegistryCredentials"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Registry username for private Docker registry. * */ username: string; /** * Registry password for private Docker registry. * */ password: string; /** * Secret version storing the registry credentials. * Must have keys "REGISTRY_USERNAME" and "REGISTRY_PASSWORD". * */ mysteryboxSecretVersion: string; } /** Encodes, decodes, converts, and creates {@link JobSpec_RegistryCredentials} messages. */ export declare const JobSpec_RegistryCredentials: MessageFns; /** * FileInjection materializes a small file inside the container at launch. * */ export interface JobSpec_FileInjection { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.JobSpec.FileInjection"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Absolute path inside the container where the content is written. * * Must be a clean absolute path: root, trailing slashes, empty path * segments, "." and ".." are not allowed. * */ containerPath: string; /** * File content. On create, must contain between 1 byte and 64 KiB * (one mystery box secret payload). * Returned only by Get with view SECRET. * */ content: Uint8Array; } /** Encodes, decodes, converts, and creates {@link JobSpec_FileInjection} messages. */ export declare const JobSpec_FileInjection: MessageFns; /** * Reference to a MysteryBox secret. * */ export interface JobSpec_MysteryBoxSecretRef { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.JobSpec.MysteryBoxSecretRef"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * MysteryBox secret ID. * */ secretId: string; /** * MysteryBox secret version ID. * */ versionId: string; } /** Encodes, decodes, converts, and creates {@link JobSpec_MysteryBoxSecretRef} messages. */ export declare const JobSpec_MysteryBoxSecretRef: MessageFns; /** * JobStatus represents the status of a VM app. * */ export interface JobStatus { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.JobStatus"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Private endpoints to access the workload. * */ privateEndpoints: string[]; /** * Public endpoints to access the workload. * */ publicEndpoints: string[]; /** * Status of individual job instances. * */ instances: JobInstanceStatus[]; /** * State of the job. * */ state: JobStatus_State; /** * Details of the job's state. * */ stateDetails?: JobStateDetails | undefined; /** * Time when the job workload started. * */ startedAt?: Dayjs | undefined; /** * Time when the job workload finished. * */ finishedAt?: Dayjs | undefined; } /** Encodes, decodes, converts, and creates {@link JobStatus} messages. */ export declare const JobStatus: MessageFns; /** * Job state details. * */ export interface JobStateDetails { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.JobStateDetails"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Short state description. * */ code: string; /** * Detailed human-readable description. * */ message: string; /** * Structured error details for the failure, if available. * For quota-related failures, `service_error.details.quota_failure` * is populated with the quota violations. * */ serviceError?: ServiceError | undefined; } /** Encodes, decodes, converts, and creates {@link JobStateDetails} messages. */ export declare const JobStateDetails: MessageFns; /** * JobInstanceStatus represents the status of a job instance. * */ export interface JobInstanceStatus { /** Contains the fully qualified protobuf type name. */ $type: "nebius.ai.v1.JobInstanceStatus"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * The current state of the job's workload. * */ state: JobInstanceStatus_State; /** * ID of the compute instance running the job. * */ computeInstanceId: string; /** * The current state of the compute instance. * */ computeInstanceState: InstanceStatus_InstanceState; /** * Private IP address of the instance. * */ privateIp: string; /** * Public IP address of the instance. * */ publicIp: string; } /** Encodes, decodes, converts, and creates {@link JobInstanceStatus} messages. */ export declare const JobInstanceStatus: MessageFns; //# sourceMappingURL=index.d.ts.map