import { Long, unknownFieldsSymbol } from "../../../../runtime/protos/index.js"; import type { 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 { GetOperationRequest, Operation, OperationService, ResourceMetadata } from "../../common/v1/index.js"; /** Represents the `nebius.applications.v1alpha1.GetK8sReleaseRequest` protobuf message. */ export interface GetK8sReleaseRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.applications.v1alpha1.GetK8sReleaseRequest"; /** 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 GetK8sReleaseRequest} messages. */ export declare const GetK8sReleaseRequest: MessageFns; /** Represents the `nebius.applications.v1alpha1.ListK8sReleasesRequest` protobuf message. */ export interface ListK8sReleasesRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.applications.v1alpha1.ListK8sReleasesRequest"; /** 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; /** Contains the `filter` protobuf field. */ filter: string; /** Contains the `cluster_id` protobuf field. */ clusterId: string; } /** Encodes, decodes, converts, and creates {@link ListK8sReleasesRequest} messages. */ export declare const ListK8sReleasesRequest: MessageFns; /** Represents the `nebius.applications.v1alpha1.CreateK8sReleaseRequest` protobuf message. */ export interface CreateK8sReleaseRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.applications.v1alpha1.CreateK8sReleaseRequest"; /** 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?: K8sReleaseSpec | undefined; } /** Encodes, decodes, converts, and creates {@link CreateK8sReleaseRequest} messages. */ export declare const CreateK8sReleaseRequest: MessageFns; /** Represents the `nebius.applications.v1alpha1.UpdateK8sReleaseRequest` protobuf message. */ export interface UpdateK8sReleaseRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.applications.v1alpha1.UpdateK8sReleaseRequest"; /** 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?: K8sReleaseSpec | undefined; } /** Encodes, decodes, converts, and creates {@link UpdateK8sReleaseRequest} messages. */ export declare const UpdateK8sReleaseRequest: MessageFns; /** Represents the `nebius.applications.v1alpha1.DeleteK8sReleaseRequest` protobuf message. */ export interface DeleteK8sReleaseRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.applications.v1alpha1.DeleteK8sReleaseRequest"; /** 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 DeleteK8sReleaseRequest} messages. */ export declare const DeleteK8sReleaseRequest: MessageFns; /** Represents the `nebius.applications.v1alpha1.ListK8sReleasesResponse` protobuf message. */ export interface ListK8sReleasesResponse { /** Contains the fully qualified protobuf type name. */ $type: "nebius.applications.v1alpha1.ListK8sReleasesResponse"; /** 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: K8sRelease[]; /** Contains the `next_page_token` protobuf field. */ nextPageToken: string; } /** Encodes, decodes, converts, and creates {@link ListK8sReleasesResponse} messages. */ export declare const ListK8sReleasesResponse: MessageFns; /** * Defines the gRPC methods for the `nebius.applications.v1alpha1.K8sReleaseService` service. */ export type K8sReleaseServiceServiceDescription = typeof K8sReleaseServiceServiceDescription; /** * Describes the gRPC methods for the `nebius.applications.v1alpha1.K8sReleaseService` service. */ export declare const K8sReleaseServiceServiceDescription: { readonly get: { readonly path: "/nebius.applications.v1alpha1.K8sReleaseService/Get"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetK8sReleaseRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => GetK8sReleaseRequest; readonly responseSerialize: (value: K8sRelease) => Buffer; readonly responseDeserialize: (value: Buffer) => K8sRelease; }; readonly list: { readonly path: "/nebius.applications.v1alpha1.K8sReleaseService/List"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListK8sReleasesRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => ListK8sReleasesRequest; readonly responseSerialize: (value: ListK8sReleasesResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListK8sReleasesResponse; }; readonly create: { readonly path: "/nebius.applications.v1alpha1.K8sReleaseService/Create"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: CreateK8sReleaseRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => CreateK8sReleaseRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; readonly update: { readonly path: "/nebius.applications.v1alpha1.K8sReleaseService/Update"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: UpdateK8sReleaseRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: true; readonly requestDeserialize: (value: Buffer) => UpdateK8sReleaseRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; readonly delete: { readonly path: "/nebius.applications.v1alpha1.K8sReleaseService/Delete"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: DeleteK8sReleaseRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => DeleteK8sReleaseRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; }; /** * Handles server calls for the `nebius.applications.v1alpha1.K8sReleaseService` service. */ export interface K8sReleaseServiceServer extends UntypedServiceImplementation { /** * Handles the `Get` RPC. */ get: handleUnaryCall; /** * Handles the `List` RPC. */ list: handleUnaryCall; /** * Handles the `Create` RPC. */ create: handleUnaryCall; /** * Handles the `Update` RPC. */ update: handleUnaryCall; /** * Handles the `Delete` RPC. */ delete: handleUnaryCall; } /** * Defines the low-level gRPC client for the `nebius.applications.v1alpha1.K8sReleaseService` service. */ export interface K8sReleaseServiceBaseClient extends Client { /** * Calls the `Get` RPC. */ get(request: GetK8sReleaseRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: K8sRelease) => void): ClientUnaryCall; /** * Calls the `List` RPC. */ list(request: ListK8sReleasesRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: ListK8sReleasesResponse) => void): ClientUnaryCall; /** * Calls the `Create` RPC. */ create(request: CreateK8sReleaseRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Operation) => void): ClientUnaryCall; /** * Calls the `Update` RPC. */ update(request: UpdateK8sReleaseRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Operation) => void): ClientUnaryCall; /** * Calls the `Delete` RPC. */ delete(request: DeleteK8sReleaseRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Operation) => void): ClientUnaryCall; } /** * Creates low-level gRPC clients for the `nebius.applications.v1alpha1.K8sReleaseService` service. */ export declare const K8sReleaseServiceBaseClient: { /** Creates a low-level client for the service address. */ new (address: string, credentials: ChannelCredentials, options?: Partial): K8sReleaseServiceBaseClient; /** Contains the gRPC service description. */ service: typeof K8sReleaseServiceServiceDescription; /** Contains the fully qualified protobuf service name. */ serviceName: string; }; /** * Calls the `nebius.applications.v1alpha1.K8sReleaseService` service. */ export interface K8sReleaseService { /** Contains the fully qualified protobuf service name. */ $type: "nebius.applications.v1alpha1.K8sReleaseService"; /** * Calls the `Get` RPC. */ get(request: GetK8sReleaseRequest): SDKRequestClass; /** * Calls the `Get` RPC. */ get(request: GetK8sReleaseRequest, metadata: Metadata): SDKRequestClass; /** * Calls the `Get` RPC. */ get(request: GetK8sReleaseRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Calls the `List` RPC. */ list(request: ListK8sReleasesRequest): SDKRequestClass; /** * Calls the `List` RPC. */ list(request: ListK8sReleasesRequest, metadata: Metadata): SDKRequestClass; /** * Calls the `List` RPC. */ list(request: ListK8sReleasesRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Calls the `Create` RPC. */ create(request: CreateK8sReleaseRequest): SDKRequestClass>; /** * Calls the `Create` RPC. */ create(request: CreateK8sReleaseRequest, metadata: Metadata): SDKRequestClass>; /** * Calls the `Create` RPC. */ create(request: CreateK8sReleaseRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Calls the `Update` RPC. */ update(request: UpdateK8sReleaseRequest): SDKRequestClass>; /** * Calls the `Update` RPC. */ update(request: UpdateK8sReleaseRequest, metadata: Metadata): SDKRequestClass>; /** * Calls the `Update` RPC. */ update(request: UpdateK8sReleaseRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Calls the `Delete` RPC. */ delete(request: DeleteK8sReleaseRequest): SDKRequestClass>; /** * Calls the `Delete` RPC. */ delete(request: DeleteK8sReleaseRequest, metadata: Metadata): SDKRequestClass>; /** * Calls the `Delete` RPC. */ delete(request: DeleteK8sReleaseRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; } /** * Calls the `nebius.applications.v1alpha1.K8sReleaseService` service through the Nebius SDK. */ export declare class K8sReleaseService implements K8sReleaseService { private sdk; $type: "nebius.applications.v1alpha1.K8sReleaseService"; private addr; private spec; private apiServiceName; /** Creates a client that uses the SDK service address. */ constructor(sdk: SDKInterface); /** Returns the operation service for this service address. */ getOperationService(): OperationService; /** * Calls the `Get` RPC. */ get(request: GetK8sReleaseRequest): SDKRequestClass; /** * Calls the `Get` RPC. */ get(request: GetK8sReleaseRequest, metadata: Metadata): SDKRequestClass; /** * Calls the `Get` RPC. */ get(request: GetK8sReleaseRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Calls the `List` RPC. */ list(request: ListK8sReleasesRequest): SDKRequestClass; /** * Calls the `List` RPC. */ list(request: ListK8sReleasesRequest, metadata: Metadata): SDKRequestClass; /** * Calls the `List` RPC. */ list(request: ListK8sReleasesRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Calls the `Create` RPC. */ create(request: CreateK8sReleaseRequest): SDKRequestClass>; /** * Calls the `Create` RPC. */ create(request: CreateK8sReleaseRequest, metadata: Metadata): SDKRequestClass>; /** * Calls the `Create` RPC. */ create(request: CreateK8sReleaseRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Calls the `Update` RPC. */ update(request: UpdateK8sReleaseRequest): SDKRequestClass>; /** * Calls the `Update` RPC. */ update(request: UpdateK8sReleaseRequest, metadata: Metadata): SDKRequestClass>; /** * Calls the `Update` RPC. */ update(request: UpdateK8sReleaseRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Calls the `Delete` RPC. */ delete(request: DeleteK8sReleaseRequest): SDKRequestClass>; /** * Calls the `Delete` RPC. */ delete(request: DeleteK8sReleaseRequest, metadata: Metadata): SDKRequestClass>; /** * Calls the `Delete` RPC. */ delete(request: DeleteK8sReleaseRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; } /** * Represents the `nebius.applications.v1alpha1.K8sReleaseStatus.State` protobuf enum. */ export type K8sReleaseStatus_State = EnumInstance<"UNRECOGNIZED" | "UNSPECIFIED" | "CREATED" | "RUNNING" | "DEPLOYED" | "FAILED" | "INSTALLING">; /** Defines the static values of {@link K8sReleaseStatus_State}. */ export interface K8sReleaseStatus_StateValueMembers { /** * Represents the `UNSPECIFIED` protobuf enum value. */ readonly UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "UNSPECIFIED" | "CREATED" | "RUNNING" | "DEPLOYED" | "FAILED" | "INSTALLING">; /** * Represents the `CREATED` protobuf enum value. */ readonly CREATED: EnumInstance<"UNRECOGNIZED" | "UNSPECIFIED" | "CREATED" | "RUNNING" | "DEPLOYED" | "FAILED" | "INSTALLING">; /** * Represents the `RUNNING` protobuf enum value. */ readonly RUNNING: EnumInstance<"UNRECOGNIZED" | "UNSPECIFIED" | "CREATED" | "RUNNING" | "DEPLOYED" | "FAILED" | "INSTALLING">; /** * Represents the `DEPLOYED` protobuf enum value. */ readonly DEPLOYED: EnumInstance<"UNRECOGNIZED" | "UNSPECIFIED" | "CREATED" | "RUNNING" | "DEPLOYED" | "FAILED" | "INSTALLING">; /** * Represents the `FAILED` protobuf enum value. */ readonly FAILED: EnumInstance<"UNRECOGNIZED" | "UNSPECIFIED" | "CREATED" | "RUNNING" | "DEPLOYED" | "FAILED" | "INSTALLING">; /** * Represents the `INSTALLING` protobuf enum value. */ readonly INSTALLING: EnumInstance<"UNRECOGNIZED" | "UNSPECIFIED" | "CREATED" | "RUNNING" | "DEPLOYED" | "FAILED" | "INSTALLING">; } /** Defines the runtime API for {@link K8sReleaseStatus_State}. */ export type K8sReleaseStatus_StateClass = EnumClass<"UNRECOGNIZED" | "UNSPECIFIED" | "CREATED" | "RUNNING" | "DEPLOYED" | "FAILED" | "INSTALLING"> & K8sReleaseStatus_StateValueMembers; /** Converts and creates {@link K8sReleaseStatus_State} values. */ export declare const K8sReleaseStatus_State: K8sReleaseStatus_StateClass; /** Represents the `nebius.applications.v1alpha1.K8sRelease` protobuf message. */ export interface K8sRelease { /** Contains the fully qualified protobuf type name. */ $type: "nebius.applications.v1alpha1.K8sRelease"; /** 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?: K8sReleaseSpec | undefined; /** Contains the `status` protobuf field. */ status?: K8sReleaseStatus | undefined; } /** Encodes, decodes, converts, and creates {@link K8sRelease} messages. */ export declare const K8sRelease: MessageFns; /** Represents the `nebius.applications.v1alpha1.K8sReleaseSpec` protobuf message. */ export interface K8sReleaseSpec { /** Contains the fully qualified protobuf type name. */ $type: "nebius.applications.v1alpha1.K8sReleaseSpec"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** Contains the `cluster_id` protobuf field. */ clusterId: string; /** Contains the `product_slug` protobuf field. */ productSlug: string; /** Contains the `namespace` protobuf field. */ namespace: string; /** Contains the `application_name` protobuf field. */ applicationName: string; /** Contains the `values` protobuf field. */ values: string; /** Contains the `set` protobuf field. */ set: { [key: string]: string; }; } /** Encodes, decodes, converts, and creates {@link K8sReleaseSpec} messages. */ export declare const K8sReleaseSpec: MessageFns; /** Represents the `nebius.applications.v1alpha1.K8sReleaseStatus` protobuf message. */ export interface K8sReleaseStatus { /** Contains the fully qualified protobuf type name. */ $type: "nebius.applications.v1alpha1.K8sReleaseStatus"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** Contains the `state` protobuf field. */ state: K8sReleaseStatus_State; /** Contains the `error_message` protobuf field. */ errorMessage: string; } /** Encodes, decodes, converts, and creates {@link K8sReleaseStatus} messages. */ export declare const K8sReleaseStatus: MessageFns; /** * A request to retrieve a VM app template by ID. * */ export interface GetVmAppTemplateRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.applications.v1alpha1.GetVmAppTemplateRequest"; /** 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 template to retrieve. * */ id: string; } /** Encodes, decodes, converts, and creates {@link GetVmAppTemplateRequest} messages. */ export declare const GetVmAppTemplateRequest: MessageFns; /** * A request to list VM app templates. * */ export interface ListVmAppTemplatesRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.applications.v1alpha1.ListVmAppTemplatesRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * The project ID. The response includes templates from this project and the global catalog. * Required unless global_only is true. * */ parentId: string; /** * The requested page size. The service currently ignores this field and returns all matching templates. * The default value is 0. * */ pageSize: Long; /** * The pagination token. The service currently ignores this field. Leave it empty. * */ pageToken: string; /** * The text to find in template names and descriptions. The search is case-sensitive. * */ search: string; /** * The categories to match. The response includes templates that match at least one category. * */ categories: string[]; /** * Returns only global templates when true. The service ignores parent_id in this mode. * Global catalog reads require authentication but do not require a resource permission. * */ globalOnly: boolean; /** * The template kind: "covm" or "devlab". The default is "covm". * */ kind: string; } /** Encodes, decodes, converts, and creates {@link ListVmAppTemplatesRequest} messages. */ export declare const ListVmAppTemplatesRequest: MessageFns; /** * The templates that match the list request. * */ export interface ListVmAppTemplatesResponse { /** Contains the fully qualified protobuf type name. */ $type: "nebius.applications.v1alpha1.ListVmAppTemplatesResponse"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * All matching templates. The service currently returns the complete list without pagination. * */ items: VmAppTemplate[]; /** * The token for the next page. Currently always empty because the service returns all matching templates. * */ nextPageToken: string; } /** Encodes, decodes, converts, and creates {@link ListVmAppTemplatesResponse} messages. */ export declare const ListVmAppTemplatesResponse: MessageFns; /** * Defines the gRPC methods for the `nebius.applications.v1alpha1.VmAppTemplateService` service. */ export type VmAppTemplateServiceServiceDescription = typeof VmAppTemplateServiceServiceDescription; /** * Describes the gRPC methods for the `nebius.applications.v1alpha1.VmAppTemplateService` service. */ export declare const VmAppTemplateServiceServiceDescription: { readonly get: { readonly path: "/nebius.applications.v1alpha1.VmAppTemplateService/Get"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetVmAppTemplateRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => GetVmAppTemplateRequest; readonly responseSerialize: (value: VmAppTemplate) => Buffer; readonly responseDeserialize: (value: Buffer) => VmAppTemplate; }; readonly list: { readonly path: "/nebius.applications.v1alpha1.VmAppTemplateService/List"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListVmAppTemplatesRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => ListVmAppTemplatesRequest; readonly responseSerialize: (value: ListVmAppTemplatesResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListVmAppTemplatesResponse; }; }; /** * Handles server calls for the `nebius.applications.v1alpha1.VmAppTemplateService` service. */ export interface VmAppTemplateServiceServer extends UntypedServiceImplementation { /** * Returns the specified VM app template. * */ get: handleUnaryCall; /** * Retrieves a list of VM app templates. * */ list: handleUnaryCall; } /** * Defines the low-level gRPC client for the `nebius.applications.v1alpha1.VmAppTemplateService` service. */ export interface VmAppTemplateServiceBaseClient extends Client { /** * Returns the specified VM app template. * */ get(request: GetVmAppTemplateRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: VmAppTemplate) => void): ClientUnaryCall; /** * Retrieves a list of VM app templates. * */ list(request: ListVmAppTemplatesRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: ListVmAppTemplatesResponse) => void): ClientUnaryCall; } /** * Creates low-level gRPC clients for the `nebius.applications.v1alpha1.VmAppTemplateService` service. */ export declare const VmAppTemplateServiceBaseClient: { /** Creates a low-level client for the service address. */ new (address: string, credentials: ChannelCredentials, options?: Partial): VmAppTemplateServiceBaseClient; /** Contains the gRPC service description. */ service: typeof VmAppTemplateServiceServiceDescription; /** Contains the fully qualified protobuf service name. */ serviceName: string; }; /** * Provides access to the VM app template catalog. * */ export interface VmAppTemplateService { /** Contains the fully qualified protobuf service name. */ $type: "nebius.applications.v1alpha1.VmAppTemplateService"; /** * Returns the specified VM app template. * */ get(request: GetVmAppTemplateRequest): SDKRequestClass; /** * Returns the specified VM app template. * */ get(request: GetVmAppTemplateRequest, metadata: Metadata): SDKRequestClass; /** * Returns the specified VM app template. * */ get(request: GetVmAppTemplateRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Retrieves a list of VM app templates. * */ list(request: ListVmAppTemplatesRequest): SDKRequestClass; /** * Retrieves a list of VM app templates. * */ list(request: ListVmAppTemplatesRequest, metadata: Metadata): SDKRequestClass; /** * Retrieves a list of VM app templates. * */ list(request: ListVmAppTemplatesRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; } /** * Calls the `nebius.applications.v1alpha1.VmAppTemplateService` service through the Nebius SDK. */ export declare class VmAppTemplateService implements VmAppTemplateService { private sdk; $type: "nebius.applications.v1alpha1.VmAppTemplateService"; private addr; private spec; private apiServiceName; /** Creates a client that uses the SDK service address. */ constructor(sdk: SDKInterface); /** * Returns the specified VM app template. * */ get(request: GetVmAppTemplateRequest): SDKRequestClass; /** * Returns the specified VM app template. * */ get(request: GetVmAppTemplateRequest, metadata: Metadata): SDKRequestClass; /** * Returns the specified VM app template. * */ get(request: GetVmAppTemplateRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Retrieves a list of VM app templates. * */ list(request: ListVmAppTemplatesRequest): SDKRequestClass; /** * Retrieves a list of VM app templates. * */ list(request: ListVmAppTemplatesRequest, metadata: Metadata): SDKRequestClass; /** * Retrieves a list of VM app templates. * */ list(request: ListVmAppTemplatesRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; } /** * Represents the `nebius.applications.v1alpha1.TemplateInput.BooleanInput.ViewType` protobuf enum. */ export type TemplateInput_BooleanInput_ViewType = EnumInstance<"UNRECOGNIZED" | "VIEW_TYPE_UNSPECIFIED" | "CHECKBOX" | "SWITCH">; /** Defines the static values of {@link TemplateInput_BooleanInput_ViewType}. */ export interface TemplateInput_BooleanInput_ViewTypeValueMembers { /** * No form control type specified. Specify CHECKBOX or SWITCH. * */ readonly VIEW_TYPE_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "VIEW_TYPE_UNSPECIFIED" | "CHECKBOX" | "SWITCH">; /** * Display the Boolean input as a checkbox. * */ readonly CHECKBOX: EnumInstance<"UNRECOGNIZED" | "VIEW_TYPE_UNSPECIFIED" | "CHECKBOX" | "SWITCH">; /** * Display the Boolean input as a toggle switch. * */ readonly SWITCH: EnumInstance<"UNRECOGNIZED" | "VIEW_TYPE_UNSPECIFIED" | "CHECKBOX" | "SWITCH">; } /** Defines the runtime API for {@link TemplateInput_BooleanInput_ViewType}. */ export type TemplateInput_BooleanInput_ViewTypeClass = EnumClass<"UNRECOGNIZED" | "VIEW_TYPE_UNSPECIFIED" | "CHECKBOX" | "SWITCH"> & TemplateInput_BooleanInput_ViewTypeValueMembers; /** Converts and creates {@link TemplateInput_BooleanInput_ViewType} values. */ export declare const TemplateInput_BooleanInput_ViewType: TemplateInput_BooleanInput_ViewTypeClass; /** * The types of template input values. * */ export type TemplateInputField_Type = EnumInstance<"UNRECOGNIZED" | "TYPE_UNSPECIFIED" | "STRING" | "INTEGER" | "BOOLEAN" | "LIST" | "STRUCT" | "MYSTERYBOX_SECRET_VERSION">; /** Defines the static values of {@link TemplateInputField_Type}. */ export interface TemplateInputField_TypeValueMembers { /** * No input type specified. * */ readonly TYPE_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "TYPE_UNSPECIFIED" | "STRING" | "INTEGER" | "BOOLEAN" | "LIST" | "STRUCT" | "MYSTERYBOX_SECRET_VERSION">; /** * A string value. Unit-based integers include their unit suffix in the string. * */ readonly STRING: EnumInstance<"UNRECOGNIZED" | "TYPE_UNSPECIFIED" | "STRING" | "INTEGER" | "BOOLEAN" | "LIST" | "STRUCT" | "MYSTERYBOX_SECRET_VERSION">; /** * A numeric value with no fractional part. * */ readonly INTEGER: EnumInstance<"UNRECOGNIZED" | "TYPE_UNSPECIFIED" | "STRING" | "INTEGER" | "BOOLEAN" | "LIST" | "STRUCT" | "MYSTERYBOX_SECRET_VERSION">; /** * A Boolean value. * */ readonly BOOLEAN: EnumInstance<"UNRECOGNIZED" | "TYPE_UNSPECIFIED" | "STRING" | "INTEGER" | "BOOLEAN" | "LIST" | "STRUCT" | "MYSTERYBOX_SECRET_VERSION">; /** * A list value. Current templates do not support this type. * */ readonly LIST: EnumInstance<"UNRECOGNIZED" | "TYPE_UNSPECIFIED" | "STRING" | "INTEGER" | "BOOLEAN" | "LIST" | "STRUCT" | "MYSTERYBOX_SECRET_VERSION">; /** * An object value. Current templates do not support this type. * */ readonly STRUCT: EnumInstance<"UNRECOGNIZED" | "TYPE_UNSPECIFIED" | "STRING" | "INTEGER" | "BOOLEAN" | "LIST" | "STRUCT" | "MYSTERYBOX_SECRET_VERSION">; /** * A string that identifies a MysteryBox secret version. * */ readonly MYSTERYBOX_SECRET_VERSION: EnumInstance<"UNRECOGNIZED" | "TYPE_UNSPECIFIED" | "STRING" | "INTEGER" | "BOOLEAN" | "LIST" | "STRUCT" | "MYSTERYBOX_SECRET_VERSION">; } /** Defines the runtime API for {@link TemplateInputField_Type}. */ export type TemplateInputField_TypeClass = EnumClass<"UNRECOGNIZED" | "TYPE_UNSPECIFIED" | "STRING" | "INTEGER" | "BOOLEAN" | "LIST" | "STRUCT" | "MYSTERYBOX_SECRET_VERSION"> & TemplateInputField_TypeValueMembers; /** Converts and creates {@link TemplateInputField_Type} values. */ export declare const TemplateInputField_Type: TemplateInputField_TypeClass; /** * Represents a reusable VM app template. * */ export interface VmAppTemplate { /** Contains the fully qualified protobuf type name. */ $type: "nebius.applications.v1alpha1.VmAppTemplate"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * The template metadata. * */ metadata?: ResourceMetadata | undefined; /** * The template specification. * */ spec?: VmAppTemplateSpec | undefined; /** * The template status and available inputs. * */ status?: VmAppTemplateStatus | undefined; } /** Encodes, decodes, converts, and creates {@link VmAppTemplate} messages. */ export declare const VmAppTemplate: MessageFns; /** Represents the `nebius.applications.v1alpha1.VmAppTemplateSpec` protobuf message. */ export interface VmAppTemplateSpec { /** Contains the fully qualified protobuf type name. */ $type: "nebius.applications.v1alpha1.VmAppTemplateSpec"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * The template kind: "covm" or "devlab". The default is "covm". * */ kind: string; /** * The definition of the VM app template. * */ definition?: { $case: "containerTemplate"; containerTemplate: ContainerTemplateDefinition; } | undefined; } /** Encodes, decodes, converts, and creates {@link VmAppTemplateSpec} messages. */ export declare const VmAppTemplateSpec: MessageFns; /** * ContainerTemplateDefinition defines a template for a VM app that consists of one or more containers. * */ export interface ContainerTemplateDefinition { /** Contains the fully qualified protobuf type name. */ $type: "nebius.applications.v1alpha1.ContainerTemplateDefinition"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** Contains the `description` protobuf field. */ description: string; /** * The URL of the template icon. * */ iconUrl: string; /** * The inputs that configure the template. * */ inputs: TemplateInput[]; /** * The container definitions for the VM app. * */ containers: ContainerDefinition[]; /** * The platforms that the VM app supports. * An empty list allows all platforms. * */ supportedPlatforms: SupportedPlatform[]; /** * The substitutions to apply when their conditions match. * */ substitutions: ContainerTemplateDefinition_Substitution[]; } /** Encodes, decodes, converts, and creates {@link ContainerTemplateDefinition} messages. */ export declare const ContainerTemplateDefinition: MessageFns; /** Represents the `nebius.applications.v1alpha1.ContainerTemplateDefinition.Substitution` protobuf message. */ export interface ContainerTemplateDefinition_Substitution { /** Contains the fully qualified protobuf type name. */ $type: "nebius.applications.v1alpha1.ContainerTemplateDefinition.Substitution"; /** 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 container to modify. * */ containerName: string; /** * The conditions that permit this substitution. At least one condition must match. * An empty list applies the substitution unconditionally. * */ conditions: ContainerTemplateDefinition_SubstitutionCondition[]; /** * The actions to apply in the listed order. * */ operations: ContainerTemplateDefinition_SubstitutionOperation[]; } /** Encodes, decodes, converts, and creates {@link ContainerTemplateDefinition_Substitution} messages. */ export declare const ContainerTemplateDefinition_Substitution: MessageFns; /** * All specified constraints must match. Without constraints, the condition matches unconditionally before applying not. * */ export interface ContainerTemplateDefinition_SubstitutionCondition { /** Contains the fully qualified protobuf type name. */ $type: "nebius.applications.v1alpha1.ContainerTemplateDefinition.SubstitutionCondition"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Whether to negate the condition after evaluating all constraints. * */ not: boolean; /** * The compute platform name to match. An empty value adds no platform constraint. * */ platform: string; /** * The compute preset name to match. An empty value adds no preset constraint. * */ preset: string; /** * The input field ID that must exist. An empty value adds no input constraint. * Set at most one input_field_value_* field to require a non-sensitive input value to match. * */ inputFieldId: string; /** * The string value to match for input_field_id. Requires input_field_id. * If absent, this field adds no string value constraint. An empty string requires an empty input string. * */ inputFieldValueString?: string | undefined; /** * The Boolean value to match for input_field_id. Requires input_field_id. * If absent, this field adds no Boolean value constraint. If false, the input must equal false. * */ inputFieldValueBool?: boolean | undefined; /** * The integer value to match for input_field_id. Requires input_field_id. * If absent, this field adds no integer value constraint. If zero, the input must equal zero. * */ inputFieldValueInt64?: Long | undefined; /** * The floating-point value to match for input_field_id. Requires input_field_id. * If absent, this field adds no floating-point value constraint. If zero, the input must equal zero. * */ inputFieldValueDouble?: number | undefined; /** * The environment variable key that must exist. An empty value adds no environment variable constraint. * */ environmentVariableKey: string; /** * The non-sensitive environment variable value to match. Requires environment_variable_key. * If absent, only the key must exist. An empty string requires an empty variable value. * */ environmentVariableValue?: string | undefined; } /** Encodes, decodes, converts, and creates {@link ContainerTemplateDefinition_SubstitutionCondition} messages. */ export declare const ContainerTemplateDefinition_SubstitutionCondition: MessageFns; /** Represents the `nebius.applications.v1alpha1.ContainerTemplateDefinition.SubstitutionOperation` protobuf message. */ export interface ContainerTemplateDefinition_SubstitutionOperation { /** Contains the fully qualified protobuf type name. */ $type: "nebius.applications.v1alpha1.ContainerTemplateDefinition.SubstitutionOperation"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * The action to perform on the selected container value. * */ action?: { $case: "remove"; remove: boolean; } | { $case: "setFromInputField"; setFromInputField: string; } | { $case: "setToStringValue"; setToStringValue: string; } | { $case: "setToIntegerValue"; setToIntegerValue: Long; } | { $case: "setUser"; setUser: ContainerDefinition_User; } | undefined; /** * The container value to modify. * */ value?: { $case: "environmentVariable"; environmentVariable: string; } | { $case: "sensitiveEnvironmentVariable"; sensitiveEnvironmentVariable: string; } | { $case: "image"; image: boolean; } | { $case: "shmSizeBytes"; shmSizeBytes: boolean; } | { $case: "containerCommand"; containerCommand: boolean; } | { $case: "containerUser"; containerUser: boolean; } | { $case: "imageTag"; imageTag: boolean; } | undefined; } /** Encodes, decodes, converts, and creates {@link ContainerTemplateDefinition_SubstitutionOperation} messages. */ export declare const ContainerTemplateDefinition_SubstitutionOperation: MessageFns; /** Represents the `nebius.applications.v1alpha1.TemplateInput` protobuf message. */ export interface TemplateInput { /** Contains the fully qualified protobuf type name. */ $type: "nebius.applications.v1alpha1.TemplateInput"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * The input ID. Template input values use this ID as their key. * */ id: string; /** * Whether the template requires a value for this input. * */ required: boolean; /** * The input type and its configuration. * */ input?: { $case: "stringInput"; stringInput: TemplateInput_StringInput; } | { $case: "enumStringInput"; enumStringInput: TemplateInput_EnumStringInput; } | { $case: "integerInput"; integerInput: TemplateInput_IntegerInput; } | { $case: "integerUnitInput"; integerUnitInput: TemplateInput_IntegerUnitInput; } | { $case: "booleanInput"; booleanInput: TemplateInput_BooleanInput; } | { $case: "textContentInput"; textContentInput: TemplateInput_TextContentInput; } | { $case: "environmentVariablesInput"; environmentVariablesInput: TemplateInput_EnvironmentVariablesInput; } | { $case: "huggingFaceTokenInput"; huggingFaceTokenInput: TemplateInput_HuggingFaceTokenInput; } | { $case: "dockerRegistryCredentialsInput"; dockerRegistryCredentialsInput: TemplateInput_DockerRegistryCredentialsInput; } | { $case: "serviceAccountMirrorInput"; serviceAccountMirrorInput: TemplateInput_ServiceAccountMirrorInput; } | undefined; } /** Encodes, decodes, converts, and creates {@link TemplateInput} messages. */ export declare const TemplateInput: MessageFns; /** Represents the `nebius.applications.v1alpha1.TemplateInput.StringInput` protobuf message. */ export interface TemplateInput_StringInput { /** Contains the fully qualified protobuf type name. */ $type: "nebius.applications.v1alpha1.TemplateInput.StringInput"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** Contains the `name` protobuf field. */ name: string; /** Contains the `description` protobuf field. */ description: string; /** * The placeholder text for the input. * */ placeholder: string; /** * The regular expression that validates the input value. * */ pattern: string; /** * The default input value. * */ defaultValue: string; /** * Whether the input contains sensitive data. * */ sensitive: boolean; /** * Whether the form offers password generation for this sensitive input. * */ generate: boolean; /** * Whether the form displays a multiline text input. * */ multiline: boolean; /** * The tooltip text for the input. * */ tooltip: string; /** * The prefix to display before the input. * */ inputPrefix: string; } /** Encodes, decodes, converts, and creates {@link TemplateInput_StringInput} messages. */ export declare const TemplateInput_StringInput: MessageFns; /** * EnumStringInput defines a string input with predefined options. * Will be rendered as a dropdown in UI. * */ export interface TemplateInput_EnumStringInput { /** Contains the fully qualified protobuf type name. */ $type: "nebius.applications.v1alpha1.TemplateInput.EnumStringInput"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** Contains the `name` protobuf field. */ name: string; /** Contains the `description` protobuf field. */ description: string; /** * The placeholder text for the input. * */ placeholder: string; /** * The available input options. * */ options: TemplateInput_EnumStringInput_Option[]; /** * The default option value. * */ defaultValue: string; } /** Encodes, decodes, converts, and creates {@link TemplateInput_EnumStringInput} messages. */ export declare const TemplateInput_EnumStringInput: MessageFns; /** Represents the `nebius.applications.v1alpha1.TemplateInput.EnumStringInput.Option` protobuf message. */ export interface TemplateInput_EnumStringInput_Option { /** Contains the fully qualified protobuf type name. */ $type: "nebius.applications.v1alpha1.TemplateInput.EnumStringInput.Option"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * The value of the option, which is used in the value of the input. * */ value: string; /** * The label for the option. An empty label uses the option value. * */ label: string; } /** Encodes, decodes, converts, and creates {@link TemplateInput_EnumStringInput_Option} messages. */ export declare const TemplateInput_EnumStringInput_Option: MessageFns; /** * IntegerUnitInput defines an integer input with a unit, bounds, step, and default value. * The form displays a slider with the unit suffix. * */ export interface TemplateInput_IntegerUnitInput { /** Contains the fully qualified protobuf type name. */ $type: "nebius.applications.v1alpha1.TemplateInput.IntegerUnitInput"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** Contains the `name` protobuf field. */ name: string; /** Contains the `description` protobuf field. */ description: string; /** * The unit suffix for the input value. * */ unit: string; /** * The minimum input value before multiplication. * */ minValue: Long; /** * The maximum input value before multiplication. * */ maxValue: Long; /** * The increment between valid input values, starting at min_value. * */ step: Long; /** * The default input value before multiplication. * */ defaultValue: Long; /** * The multiplication factor. Values less than one use a factor of one. * */ multiplyBy: Long; } /** Encodes, decodes, converts, and creates {@link TemplateInput_IntegerUnitInput} messages. */ export declare const TemplateInput_IntegerUnitInput: MessageFns; /** * IntegerInput defines a simple integer field. * The form displays a text box. * */ export interface TemplateInput_IntegerInput { /** Contains the fully qualified protobuf type name. */ $type: "nebius.applications.v1alpha1.TemplateInput.IntegerInput"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** Contains the `name` protobuf field. */ name: string; /** Contains the `description` protobuf field. */ description: string; /** * The minimum input value before multiplication. * If absent, no minimum applies. If zero, the input must be zero or greater. * */ minValue?: Long | undefined; /** * The maximum input value before multiplication. * If absent, no maximum applies. If zero, the input must be zero or less. * */ maxValue?: Long | undefined; /** * The default for an omitted, non-required input before multiplication. * If absent, the input uses min_value, or zero when min_value is absent. * If zero, the default is zero, regardless of min_value. The bounds still apply. * */ defaultValue?: Long | undefined; /** * The multiplication factor. Zero uses a factor of one. * */ multiplyBy: Long; } /** Encodes, decodes, converts, and creates {@link TemplateInput_IntegerInput} messages. */ export declare const TemplateInput_IntegerInput: MessageFns; /** * BooleanInput defines a Boolean field. * */ export interface TemplateInput_BooleanInput { /** Contains the fully qualified protobuf type name. */ $type: "nebius.applications.v1alpha1.TemplateInput.BooleanInput"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** Contains the `name` protobuf field. */ name: string; /** Contains the `description` protobuf field. */ description: string; /** * The default input value. * */ defaultValue: boolean; /** * The form control type for the input. * */ viewType: TemplateInput_BooleanInput_ViewType; } /** Encodes, decodes, converts, and creates {@link TemplateInput_BooleanInput} messages. */ export declare const TemplateInput_BooleanInput: MessageFns; /** * TextContentInput defines a read-only text content field. * Will be rendered as a text block in UI. * Cannot be optional. * */ export interface TemplateInput_TextContentInput { /** Contains the fully qualified protobuf type name. */ $type: "nebius.applications.v1alpha1.TemplateInput.TextContentInput"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * The content to display. * */ content: string; /** * If set to true, the field will be shown in the form. * */ showInForm: boolean; /** * If set to true, the field will be shown in the overview page after the VM app is created. * */ showInOverview: boolean; } /** Encodes, decodes, converts, and creates {@link TemplateInput_TextContentInput} messages. */ export declare const TemplateInput_TextContentInput: MessageFns; /** * Environment variables input * Will be rendered as a list of key-value pairs in UI. * Cannot be optional. * */ export interface TemplateInput_EnvironmentVariablesInput { /** Contains the fully qualified protobuf type name. */ $type: "nebius.applications.v1alpha1.TemplateInput.EnvironmentVariablesInput"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** Contains the `name` protobuf field. */ name: string; /** Contains the `description` protobuf field. */ description: string; } /** Encodes, decodes, converts, and creates {@link TemplateInput_EnvironmentVariablesInput} messages. */ export declare const TemplateInput_EnvironmentVariablesInput: MessageFns; /** * Hugging face token input * Will be rendered as the form in UI. * */ export interface TemplateInput_HuggingFaceTokenInput { /** Contains the fully qualified protobuf type name. */ $type: "nebius.applications.v1alpha1.TemplateInput.HuggingFaceTokenInput"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** Contains the `name` protobuf field. */ name: string; /** Contains the `description` protobuf field. */ description: string; /** * If set to true, the field will be shown in the form. * */ showInForm: boolean; /** * Whether the token contains sensitive data. * */ sensitive: boolean; } /** Encodes, decodes, converts, and creates {@link TemplateInput_HuggingFaceTokenInput} messages. */ export declare const TemplateInput_HuggingFaceTokenInput: MessageFns; /** * Docker Registry Credentials input * Will be rendered as the form in UI. * */ export interface TemplateInput_DockerRegistryCredentialsInput { /** Contains the fully qualified protobuf type name. */ $type: "nebius.applications.v1alpha1.TemplateInput.DockerRegistryCredentialsInput"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** Contains the `name` protobuf field. */ name: string; /** Contains the `description` protobuf field. */ description: string; /** * If set to true, the field will be shown in the form. * */ showInForm: boolean; /** * Whether the credentials contain sensitive data. * */ sensitive: boolean; } /** Encodes, decodes, converts, and creates {@link TemplateInput_DockerRegistryCredentialsInput} messages. */ export declare const TemplateInput_DockerRegistryCredentialsInput: MessageFns; /** * Service Account Mirror input * Will be rendered as a service account selector in UI. * */ export interface TemplateInput_ServiceAccountMirrorInput { /** Contains the fully qualified protobuf type name. */ $type: "nebius.applications.v1alpha1.TemplateInput.ServiceAccountMirrorInput"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** Contains the `description` protobuf field. */ description: string; } /** Encodes, decodes, converts, and creates {@link TemplateInput_ServiceAccountMirrorInput} messages. */ export declare const TemplateInput_ServiceAccountMirrorInput: MessageFns; /** Represents the `nebius.applications.v1alpha1.VmAppTemplateStatus` protobuf message. */ export interface VmAppTemplateStatus { /** Contains the fully qualified protobuf type name. */ $type: "nebius.applications.v1alpha1.VmAppTemplateStatus"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** Contains the `description` protobuf field. */ description: string; /** * The URL of the template icon. * */ iconUrl: string; /** * The fields that accept values for this template. * */ inputFields: TemplateInputField[]; /** * Supported platforms for the VM app template. * If empty, the VM app template is supported on all platforms. * */ supportedPlatforms: SupportedPlatform[]; /** * Categories that the template belongs to. * */ categories: string[]; } /** Encodes, decodes, converts, and creates {@link VmAppTemplateStatus} messages. */ export declare const VmAppTemplateStatus: MessageFns; /** Represents the `nebius.applications.v1alpha1.TemplateInputField` protobuf message. */ export interface TemplateInputField { /** Contains the fully qualified protobuf type name. */ $type: "nebius.applications.v1alpha1.TemplateInputField"; /** 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 input field. * */ id: string; /** * The type of value that the input field accepts. * */ type: TemplateInputField_Type; /** Contains the `name` protobuf field. */ name: string; /** Contains the `description` protobuf field. */ description: string; /** * Whether the template requires a value for this input. * */ required: boolean; /** * Whether the input field contains sensitive data. * */ sensitive: boolean; } /** Encodes, decodes, converts, and creates {@link TemplateInputField} messages. */ export declare const TemplateInputField: MessageFns; /** Represents the `nebius.applications.v1alpha1.SupportedPlatform` protobuf message. */ export interface SupportedPlatform { /** Contains the fully qualified protobuf type name. */ $type: "nebius.applications.v1alpha1.SupportedPlatform"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * The compute platform ID. * */ id: string; /** * Presets of the platform that are supported by the VM app template. * If empty, all presets are supported. * */ supportedPresets: string[]; } /** Encodes, decodes, converts, and creates {@link SupportedPlatform} messages. */ export declare const SupportedPlatform: MessageFns; /** * Represents the `nebius.applications.v1alpha1.ContainerDefinition.RestartPolicy` protobuf enum. */ export type ContainerDefinition_RestartPolicy = EnumInstance<"UNRECOGNIZED" | "RESTART_POLICY_UNSPECIFIED" | "ALWAYS" | "ON_FAILURE" | "NEVER">; /** Defines the static values of {@link ContainerDefinition_RestartPolicy}. */ export interface ContainerDefinition_RestartPolicyValueMembers { /** * No restart policy specified. Uses ALWAYS. * */ readonly RESTART_POLICY_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "RESTART_POLICY_UNSPECIFIED" | "ALWAYS" | "ON_FAILURE" | "NEVER">; /** * Restart the container whenever it stops. * */ readonly ALWAYS: EnumInstance<"UNRECOGNIZED" | "RESTART_POLICY_UNSPECIFIED" | "ALWAYS" | "ON_FAILURE" | "NEVER">; /** * Restart the container only when it exits with a non-zero exit code. * */ readonly ON_FAILURE: EnumInstance<"UNRECOGNIZED" | "RESTART_POLICY_UNSPECIFIED" | "ALWAYS" | "ON_FAILURE" | "NEVER">; /** * Do not restart the container when it stops. * */ readonly NEVER: EnumInstance<"UNRECOGNIZED" | "RESTART_POLICY_UNSPECIFIED" | "ALWAYS" | "ON_FAILURE" | "NEVER">; } /** Defines the runtime API for {@link ContainerDefinition_RestartPolicy}. */ export type ContainerDefinition_RestartPolicyClass = EnumClass<"UNRECOGNIZED" | "RESTART_POLICY_UNSPECIFIED" | "ALWAYS" | "ON_FAILURE" | "NEVER"> & ContainerDefinition_RestartPolicyValueMembers; /** Converts and creates {@link ContainerDefinition_RestartPolicy} values. */ export declare const ContainerDefinition_RestartPolicy: ContainerDefinition_RestartPolicyClass; /** * The transport protocol for the exposed port. * */ export type ContainerDefinition_Port_Protocol = EnumInstance<"UNRECOGNIZED" | "PROTOCOL_UNSPECIFIED" | "TCP" | "UDP">; /** Defines the static values of {@link ContainerDefinition_Port_Protocol}. */ export interface ContainerDefinition_Port_ProtocolValueMembers { /** * No protocol specified. Uses TCP. * */ readonly PROTOCOL_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "PROTOCOL_UNSPECIFIED" | "TCP" | "UDP">; /** * The Transmission Control Protocol. * */ readonly TCP: EnumInstance<"UNRECOGNIZED" | "PROTOCOL_UNSPECIFIED" | "TCP" | "UDP">; /** * The User Datagram Protocol. * */ readonly UDP: EnumInstance<"UNRECOGNIZED" | "PROTOCOL_UNSPECIFIED" | "TCP" | "UDP">; } /** Defines the runtime API for {@link ContainerDefinition_Port_Protocol}. */ export type ContainerDefinition_Port_ProtocolClass = EnumClass<"UNRECOGNIZED" | "PROTOCOL_UNSPECIFIED" | "TCP" | "UDP"> & ContainerDefinition_Port_ProtocolValueMembers; /** Converts and creates {@link ContainerDefinition_Port_Protocol} values. */ export declare const ContainerDefinition_Port_Protocol: ContainerDefinition_Port_ProtocolClass; /** * The access mode for the mounted disk. * */ export type DiskMount_Mode = EnumInstance<"UNRECOGNIZED" | "MODE_UNSPECIFIED" | "READ_WRITE" | "READ_ONLY">; /** Defines the static values of {@link DiskMount_Mode}. */ export interface DiskMount_ModeValueMembers { /** * No access mode specified. Specify READ_WRITE or READ_ONLY. * */ readonly MODE_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "MODE_UNSPECIFIED" | "READ_WRITE" | "READ_ONLY">; /** * Allow reads and writes. * */ readonly READ_WRITE: EnumInstance<"UNRECOGNIZED" | "MODE_UNSPECIFIED" | "READ_WRITE" | "READ_ONLY">; /** * Allow reads only. * */ readonly READ_ONLY: EnumInstance<"UNRECOGNIZED" | "MODE_UNSPECIFIED" | "READ_WRITE" | "READ_ONLY">; } /** Defines the runtime API for {@link DiskMount_Mode}. */ export type DiskMount_ModeClass = EnumClass<"UNRECOGNIZED" | "MODE_UNSPECIFIED" | "READ_WRITE" | "READ_ONLY"> & DiskMount_ModeValueMembers; /** Converts and creates {@link DiskMount_Mode} values. */ export declare const DiskMount_Mode: DiskMount_ModeClass; /** * The access mode for the mounted filesystem. * */ export type FilesystemMount_Mode = EnumInstance<"UNRECOGNIZED" | "MODE_UNSPECIFIED" | "READ_WRITE" | "READ_ONLY">; /** Defines the static values of {@link FilesystemMount_Mode}. */ export interface FilesystemMount_ModeValueMembers { /** * No access mode specified. Specify READ_WRITE or READ_ONLY. * */ readonly MODE_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "MODE_UNSPECIFIED" | "READ_WRITE" | "READ_ONLY">; /** * Allow reads and writes. * */ readonly READ_WRITE: EnumInstance<"UNRECOGNIZED" | "MODE_UNSPECIFIED" | "READ_WRITE" | "READ_ONLY">; /** * Allow reads only. * */ readonly READ_ONLY: EnumInstance<"UNRECOGNIZED" | "MODE_UNSPECIFIED" | "READ_WRITE" | "READ_ONLY">; } /** Defines the runtime API for {@link FilesystemMount_Mode}. */ export type FilesystemMount_ModeClass = EnumClass<"UNRECOGNIZED" | "MODE_UNSPECIFIED" | "READ_WRITE" | "READ_ONLY"> & FilesystemMount_ModeValueMembers; /** Converts and creates {@link FilesystemMount_Mode} values. */ export declare const FilesystemMount_Mode: FilesystemMount_ModeClass; /** * The access mode for the mounted storage bucket. * */ export type StorageBucketMount_Mode = EnumInstance<"UNRECOGNIZED" | "MODE_UNSPECIFIED" | "READ_WRITE" | "READ_ONLY">; /** Defines the static values of {@link StorageBucketMount_Mode}. */ export interface StorageBucketMount_ModeValueMembers { /** * No access mode specified. Specify READ_WRITE or READ_ONLY. * */ readonly MODE_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "MODE_UNSPECIFIED" | "READ_WRITE" | "READ_ONLY">; /** * Allow reads and writes. * */ readonly READ_WRITE: EnumInstance<"UNRECOGNIZED" | "MODE_UNSPECIFIED" | "READ_WRITE" | "READ_ONLY">; /** * Allow reads only. * */ readonly READ_ONLY: EnumInstance<"UNRECOGNIZED" | "MODE_UNSPECIFIED" | "READ_WRITE" | "READ_ONLY">; } /** Defines the runtime API for {@link StorageBucketMount_Mode}. */ export type StorageBucketMount_ModeClass = EnumClass<"UNRECOGNIZED" | "MODE_UNSPECIFIED" | "READ_WRITE" | "READ_ONLY"> & StorageBucketMount_ModeValueMembers; /** Converts and creates {@link StorageBucketMount_Mode} values. */ export declare const StorageBucketMount_Mode: StorageBucketMount_ModeClass; /** * ContainerDefinition defines a container that will be run on the VM. * */ export interface ContainerDefinition { /** Contains the fully qualified protobuf type name. */ $type: "nebius.applications.v1alpha1.ContainerDefinition"; /** 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 container. This name is should be unique within the VM app. * If not specified, it will be generated based on the image name. * */ name: string; /** * The Docker image to use for the container. * */ image: string; /** * Specifies the environment variables for the container. * */ environmentVariables: EnvironmentVariable[]; /** * Specifies the ports that the container exposes. * */ ports: ContainerDefinition_Port[]; /** * The volume to be mounted into the container. * */ volumes: ContainerDefinition_Volume[]; /** * The command for the container in shell-string format. * If not specified, the default entrypoint from the image will be used. * */ command: string; /** * Shared memory size in bytes. * */ shmSizeBytes: Long; /** * The user to run the container as. * */ runtimeUser?: ContainerDefinition_User | undefined; /** * The working directory for the container. * */ workingDir: string; /** * If true, the container will be run in privileged mode. * */ privileged: boolean; /** * The entrypoint for the container. * */ entrypoint: string; /** * The restart policy for the container. * If not specified, the default policy is "always". * */ restartPolicy: ContainerDefinition_RestartPolicy; /** * The maximum number of restart attempts for the ON_FAILURE restart policy. * If absent or zero, restarts have no limit. A positive value limits the number of restarts. * Other restart policies ignore this field. Devlab templates must omit it. * */ maxAttempts?: Long | undefined; /** * Enables host IPC namespace sharing. * */ hostIpc: boolean; /** * Enables host network namespace sharing. * */ hostNetwork: boolean; /** * Enables logs export to Nebius Observability. * */ exportLogs: boolean; /** * The docker registry username to configure for the container. * */ registryUsername: string; /** * The docker registry password to configure for the container. * */ registryPassword: string; /** * Small files materialized inside the container before it starts. * */ injectedFiles: ContainerDefinition_InjectedFile[]; /** * GPU configuration for the container. * If not specified, the container will not have access to GPUs. * Ignored if the compute instance does not have GPUs. * */ gpu?: { $case: "gpuCount"; gpuCount: Long; } | { $case: "allGpus"; allGpus: boolean; } | undefined; } /** Encodes, decodes, converts, and creates {@link ContainerDefinition} messages. */ export declare const ContainerDefinition: MessageFns; /** Represents the `nebius.applications.v1alpha1.ContainerDefinition.User` protobuf message. */ export interface ContainerDefinition_User { /** Contains the fully qualified protobuf type name. */ $type: "nebius.applications.v1alpha1.ContainerDefinition.User"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * The user ID to run the container as. * */ uid: Long; /** * The group ID to run the container as. * */ gid: Long; } /** Encodes, decodes, converts, and creates {@link ContainerDefinition_User} messages. */ export declare const ContainerDefinition_User: MessageFns; /** * Port defines a port that is exposed by the container. * */ export interface ContainerDefinition_Port { /** Contains the fully qualified protobuf type name. */ $type: "nebius.applications.v1alpha1.ContainerDefinition.Port"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * The port number of the container that needs to be exposed. * */ port: number; /** * The port on the host that the container port will be mapped to. * If not specified, the port will be mapped to the same port on the host. * */ hostPort: number; /** * The protocol used by the exposed port, either TCP or UDP. * If not specified, it defaults to TCP. * */ protocol: ContainerDefinition_Port_Protocol; /** * The name of the endpoint for this port, which is used to identify the endpoint in the UI. * */ endpointName: string; } /** Encodes, decodes, converts, and creates {@link ContainerDefinition_Port} messages. */ export declare const ContainerDefinition_Port: MessageFns; /** * Volume defines a volume that will be mounted into the container. * */ export interface ContainerDefinition_Volume { /** Contains the fully qualified protobuf type name. */ $type: "nebius.applications.v1alpha1.ContainerDefinition.Volume"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * The unique identifier of the volume. * If not specified, an ID will be generated. * */ id: string; /** * The path in the container where the mounted volume will be available. * */ mountPath: string; /** * The description of the volume. * */ description: string; /** * The storage of the volume. * If not specified, the volume will be mounted on the VM boot disk. * */ storage?: { $case: "bootDisk"; bootDisk: BootDisk; } | { $case: "disk"; disk: DiskMount; } | { $case: "filesystem"; filesystem: FilesystemMount; } | { $case: "storageBucket"; storageBucket: StorageBucketMount; } | { $case: "externalS3"; externalS3: ExternalS3Mount; } | undefined; } /** Encodes, decodes, converts, and creates {@link ContainerDefinition_Volume} messages. */ export declare const ContainerDefinition_Volume: MessageFns; /** * InjectedFile is a small file materialized inside the container at launch. * */ export interface ContainerDefinition_InjectedFile { /** Contains the fully qualified protobuf type name. */ $type: "nebius.applications.v1alpha1.ContainerDefinition.InjectedFile"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Stable identifier within the container, used as the materialized * file's name under the agent state directory. * */ id: string; /** * Absolute path inside the container where the content is written. * */ containerPath: string; /** * File content. Masked out of the stored definition by Sanitize(); the * real bytes live only in the mystery box data secret. * */ content: Uint8Array; } /** Encodes, decodes, converts, and creates {@link ContainerDefinition_InjectedFile} messages. */ export declare const ContainerDefinition_InjectedFile: MessageFns; /** * EnvironmentVariable defines an environment variable for the container. * */ export interface EnvironmentVariable { /** Contains the fully qualified protobuf type name. */ $type: "nebius.applications.v1alpha1.EnvironmentVariable"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * The key of the environment variable. * */ key: string; /** * The value of the environment variable. * */ data?: { $case: "value"; value: string; } | { $case: "sensitiveValue"; sensitiveValue: string; } | undefined; } /** Encodes, decodes, converts, and creates {@link EnvironmentVariable} messages. */ export declare const EnvironmentVariable: MessageFns; /** * BootDisk defines a boot disk path that will be mounted into the container. * */ export interface BootDisk { /** Contains the fully qualified protobuf type name. */ $type: "nebius.applications.v1alpha1.BootDisk"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; } /** Encodes, decodes, converts, and creates {@link BootDisk} messages. */ export declare const BootDisk: MessageFns; /** Represents the `nebius.applications.v1alpha1.DiskMount` protobuf message. */ export interface DiskMount { /** Contains the fully qualified protobuf type name. */ $type: "nebius.applications.v1alpha1.DiskMount"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * ID of the compute disk to be mounted * */ id: string; /** * Mount mode. * */ mode: DiskMount_Mode; } /** Encodes, decodes, converts, and creates {@link DiskMount} messages. */ export declare const DiskMount: MessageFns; /** * FilesystemMount defines a filesystem that will be mounted into the container. * */ export interface FilesystemMount { /** Contains the fully qualified protobuf type name. */ $type: "nebius.applications.v1alpha1.FilesystemMount"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * ID of the filesystem to be mounted * */ id: string; /** * Mount mode. * */ mode: FilesystemMount_Mode; } /** Encodes, decodes, converts, and creates {@link FilesystemMount} messages. */ export declare const FilesystemMount: MessageFns; /** * StorageBucketMount defines a storage bucket that will be mounted into the container. * */ export interface StorageBucketMount { /** Contains the fully qualified protobuf type name. */ $type: "nebius.applications.v1alpha1.StorageBucketMount"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * ID of the storage bucket to be mounted * */ id: string; /** * Mount mode. * */ mode: StorageBucketMount_Mode; } /** Encodes, decodes, converts, and creates {@link StorageBucketMount} messages. */ export declare const StorageBucketMount: MessageFns; /** * ExternalS3Mount defines an external S3-compatible bucket that will be mounted into the container. * */ export interface ExternalS3Mount { /** Contains the fully qualified protobuf type name. */ $type: "nebius.applications.v1alpha1.ExternalS3Mount"; /** 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. * */ endpoint: string; /** * Bucket name. * */ bucket: string; /** * Access key ID. * */ accessKeyId: string; /** * Secret access key. * */ secretAccessKey: string; /** * Session token (optional, for temporary credentials). * */ sessionToken: string; /** * Mount mode. * */ mode: StorageBucketMount_Mode; /** * S3 region. * */ region: string; } /** Encodes, decodes, converts, and creates {@link ExternalS3Mount} messages. */ export declare const ExternalS3Mount: MessageFns; //# sourceMappingURL=index.d.ts.map