@nebius/js-sdk 0.1.28 → 0.1.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/dist/cjs/api/nebius/ai/v1/index.d.ts +1437 -0
  2. package/dist/cjs/api/nebius/ai/v1/index.d.ts.map +1 -0
  3. package/dist/cjs/api/nebius/ai/v1/index.js +6130 -0
  4. package/dist/cjs/api/nebius/ai/v1/index.js.map +1 -0
  5. package/dist/cjs/api/nebius/capacity/v1/index.d.ts +52 -0
  6. package/dist/cjs/api/nebius/capacity/v1/index.d.ts.map +1 -1
  7. package/dist/cjs/api/nebius/capacity/v1/index.js +211 -1
  8. package/dist/cjs/api/nebius/capacity/v1/index.js.map +1 -1
  9. package/dist/cjs/api/nebius/compute/v1/index.d.ts +5 -0
  10. package/dist/cjs/api/nebius/compute/v1/index.d.ts.map +1 -1
  11. package/dist/cjs/api/nebius/compute/v1/index.js.map +1 -1
  12. package/dist/cjs/api/nebius/iam/v1/index.d.ts +0 -4
  13. package/dist/cjs/api/nebius/iam/v1/index.d.ts.map +1 -1
  14. package/dist/cjs/api/nebius/iam/v1/index.js.map +1 -1
  15. package/dist/cjs/api/nebius/storage/v1/index.d.ts +112 -0
  16. package/dist/cjs/api/nebius/storage/v1/index.d.ts.map +1 -1
  17. package/dist/cjs/api/nebius/storage/v1/index.js +718 -1
  18. package/dist/cjs/api/nebius/storage/v1/index.js.map +1 -1
  19. package/dist/cjs/version.d.ts +1 -1
  20. package/dist/cjs/version.js +1 -1
  21. package/dist/esm/api/nebius/ai/v1/index.d.ts +1437 -0
  22. package/dist/esm/api/nebius/ai/v1/index.d.ts.map +1 -0
  23. package/dist/esm/api/nebius/ai/v1/index.js +4 -0
  24. package/dist/esm/api/nebius/capacity/v1/index.d.ts +52 -0
  25. package/dist/esm/api/nebius/capacity/v1/index.d.ts.map +1 -1
  26. package/dist/esm/api/nebius/compute/v1/index.d.ts +5 -0
  27. package/dist/esm/api/nebius/compute/v1/index.d.ts.map +1 -1
  28. package/dist/esm/api/nebius/iam/v1/index.d.ts +0 -4
  29. package/dist/esm/api/nebius/iam/v1/index.d.ts.map +1 -1
  30. package/dist/esm/api/nebius/storage/v1/index.d.ts +112 -0
  31. package/dist/esm/api/nebius/storage/v1/index.d.ts.map +1 -1
  32. package/dist/esm/version.d.ts +1 -1
  33. package/package.json +1 -1
@@ -0,0 +1,1437 @@
1
+ import { Long, unknownFieldsSymbol } from "../../../../runtime/protos/index";
2
+ import type { Duration, MessageFns, EnumInstance, EnumClass } from "../../../../runtime/protos/index";
3
+ import { customJson } from "../../../../runtime/util/logging";
4
+ import { ChannelCredentials, Client, ClientUnaryCall, ClientOptions, CallOptions, Metadata, ServiceError as GrpcServiceError, handleUnaryCall, UntypedServiceImplementation } from "@grpc/grpc-js";
5
+ import type { SDKInterface } from "../../../../sdk";
6
+ import { Request as SDKRequestClass, type RetryOptions } from "../../../../runtime/request";
7
+ import { Operation as OperationWrapper } from "../../../../runtime/operation";
8
+ import { GetOperationRequest, Operation, OperationService, ResourceMetadata } from "../../common/v1";
9
+ import { DiskSpec_DiskType, InstanceStatus_InstanceState } from "../../compute/v1";
10
+ export interface GetEndpointRequest {
11
+ $type: "nebius.ai.v1.GetEndpointRequest";
12
+ [unknownFieldsSymbol]?: Uint8Array | undefined;
13
+ [customJson]?: () => unknown;
14
+ id: string;
15
+ }
16
+ export declare const GetEndpointRequest: MessageFns<GetEndpointRequest, "nebius.ai.v1.GetEndpointRequest">;
17
+ export interface GetEndpointByNameRequest {
18
+ $type: "nebius.ai.v1.GetEndpointByNameRequest";
19
+ [unknownFieldsSymbol]?: Uint8Array | undefined;
20
+ [customJson]?: () => unknown;
21
+ parentId: string;
22
+ name: string;
23
+ }
24
+ export declare const GetEndpointByNameRequest: MessageFns<GetEndpointByNameRequest, "nebius.ai.v1.GetEndpointByNameRequest">;
25
+ export interface ListEndpointsRequest {
26
+ $type: "nebius.ai.v1.ListEndpointsRequest";
27
+ [unknownFieldsSymbol]?: Uint8Array | undefined;
28
+ [customJson]?: () => unknown;
29
+ parentId: string;
30
+ pageSize: Long;
31
+ pageToken: string;
32
+ }
33
+ export declare const ListEndpointsRequest: MessageFns<ListEndpointsRequest, "nebius.ai.v1.ListEndpointsRequest">;
34
+ export interface CreateEndpointRequest {
35
+ $type: "nebius.ai.v1.CreateEndpointRequest";
36
+ [unknownFieldsSymbol]?: Uint8Array | undefined;
37
+ [customJson]?: () => unknown;
38
+ metadata?: ResourceMetadata | undefined;
39
+ spec?: EndpointSpec | undefined;
40
+ /**
41
+ * Dry run creation of the endpoint.
42
+ *
43
+ */
44
+ dryRun: boolean;
45
+ }
46
+ export declare const CreateEndpointRequest: MessageFns<CreateEndpointRequest, "nebius.ai.v1.CreateEndpointRequest">;
47
+ export interface DeleteEndpointRequest {
48
+ $type: "nebius.ai.v1.DeleteEndpointRequest";
49
+ [unknownFieldsSymbol]?: Uint8Array | undefined;
50
+ [customJson]?: () => unknown;
51
+ id: string;
52
+ }
53
+ export declare const DeleteEndpointRequest: MessageFns<DeleteEndpointRequest, "nebius.ai.v1.DeleteEndpointRequest">;
54
+ export interface UpdateEndpointRequest {
55
+ $type: "nebius.ai.v1.UpdateEndpointRequest";
56
+ [unknownFieldsSymbol]?: Uint8Array | undefined;
57
+ [customJson]?: () => unknown;
58
+ metadata?: ResourceMetadata | undefined;
59
+ spec?: EndpointSpec | undefined;
60
+ }
61
+ export declare const UpdateEndpointRequest: MessageFns<UpdateEndpointRequest, "nebius.ai.v1.UpdateEndpointRequest">;
62
+ export interface StartEndpointRequest {
63
+ $type: "nebius.ai.v1.StartEndpointRequest";
64
+ [unknownFieldsSymbol]?: Uint8Array | undefined;
65
+ [customJson]?: () => unknown;
66
+ id: string;
67
+ }
68
+ export declare const StartEndpointRequest: MessageFns<StartEndpointRequest, "nebius.ai.v1.StartEndpointRequest">;
69
+ export interface StopEndpointRequest {
70
+ $type: "nebius.ai.v1.StopEndpointRequest";
71
+ [unknownFieldsSymbol]?: Uint8Array | undefined;
72
+ [customJson]?: () => unknown;
73
+ id: string;
74
+ }
75
+ export declare const StopEndpointRequest: MessageFns<StopEndpointRequest, "nebius.ai.v1.StopEndpointRequest">;
76
+ export interface ListEndpointsResponse {
77
+ $type: "nebius.ai.v1.ListEndpointsResponse";
78
+ [unknownFieldsSymbol]?: Uint8Array | undefined;
79
+ [customJson]?: () => unknown;
80
+ items: Endpoint[];
81
+ nextPageToken: string;
82
+ }
83
+ export declare const ListEndpointsResponse: MessageFns<ListEndpointsResponse, "nebius.ai.v1.ListEndpointsResponse">;
84
+ export type EndpointServiceServiceDescription = typeof EndpointServiceServiceDescription;
85
+ export declare const EndpointServiceServiceDescription: {
86
+ readonly get: {
87
+ readonly path: "/nebius.ai.v1.EndpointService/Get";
88
+ readonly requestStream: false;
89
+ readonly responseStream: false;
90
+ readonly requestSerialize: (value: GetEndpointRequest) => Buffer<ArrayBuffer>;
91
+ readonly sendResetMask: false;
92
+ readonly requestDeserialize: (value: Buffer) => GetEndpointRequest;
93
+ readonly responseSerialize: (value: Endpoint) => Buffer<ArrayBuffer>;
94
+ readonly responseDeserialize: (value: Buffer) => Endpoint;
95
+ };
96
+ readonly getByName: {
97
+ readonly path: "/nebius.ai.v1.EndpointService/GetByName";
98
+ readonly requestStream: false;
99
+ readonly responseStream: false;
100
+ readonly requestSerialize: (value: GetEndpointByNameRequest) => Buffer<ArrayBuffer>;
101
+ readonly sendResetMask: false;
102
+ readonly requestDeserialize: (value: Buffer) => GetEndpointByNameRequest;
103
+ readonly responseSerialize: (value: Endpoint) => Buffer<ArrayBuffer>;
104
+ readonly responseDeserialize: (value: Buffer) => Endpoint;
105
+ };
106
+ readonly list: {
107
+ readonly path: "/nebius.ai.v1.EndpointService/List";
108
+ readonly requestStream: false;
109
+ readonly responseStream: false;
110
+ readonly requestSerialize: (value: ListEndpointsRequest) => Buffer<ArrayBuffer>;
111
+ readonly sendResetMask: false;
112
+ readonly requestDeserialize: (value: Buffer) => ListEndpointsRequest;
113
+ readonly responseSerialize: (value: ListEndpointsResponse) => Buffer<ArrayBuffer>;
114
+ readonly responseDeserialize: (value: Buffer) => ListEndpointsResponse;
115
+ };
116
+ readonly create: {
117
+ readonly path: "/nebius.ai.v1.EndpointService/Create";
118
+ readonly requestStream: false;
119
+ readonly responseStream: false;
120
+ readonly requestSerialize: (value: CreateEndpointRequest) => Buffer<ArrayBuffer>;
121
+ readonly sendResetMask: false;
122
+ readonly requestDeserialize: (value: Buffer) => CreateEndpointRequest;
123
+ readonly responseSerialize: (value: Operation) => Buffer<ArrayBuffer>;
124
+ readonly responseDeserialize: (value: Buffer) => Operation;
125
+ };
126
+ readonly delete: {
127
+ readonly path: "/nebius.ai.v1.EndpointService/Delete";
128
+ readonly requestStream: false;
129
+ readonly responseStream: false;
130
+ readonly requestSerialize: (value: DeleteEndpointRequest) => Buffer<ArrayBuffer>;
131
+ readonly sendResetMask: false;
132
+ readonly requestDeserialize: (value: Buffer) => DeleteEndpointRequest;
133
+ readonly responseSerialize: (value: Operation) => Buffer<ArrayBuffer>;
134
+ readonly responseDeserialize: (value: Buffer) => Operation;
135
+ };
136
+ readonly update: {
137
+ readonly path: "/nebius.ai.v1.EndpointService/Update";
138
+ readonly requestStream: false;
139
+ readonly responseStream: false;
140
+ readonly requestSerialize: (value: UpdateEndpointRequest) => Buffer<ArrayBuffer>;
141
+ readonly sendResetMask: true;
142
+ readonly requestDeserialize: (value: Buffer) => UpdateEndpointRequest;
143
+ readonly responseSerialize: (value: Operation) => Buffer<ArrayBuffer>;
144
+ readonly responseDeserialize: (value: Buffer) => Operation;
145
+ };
146
+ readonly start: {
147
+ readonly path: "/nebius.ai.v1.EndpointService/Start";
148
+ readonly requestStream: false;
149
+ readonly responseStream: false;
150
+ readonly requestSerialize: (value: StartEndpointRequest) => Buffer<ArrayBuffer>;
151
+ readonly sendResetMask: false;
152
+ readonly requestDeserialize: (value: Buffer) => StartEndpointRequest;
153
+ readonly responseSerialize: (value: Operation) => Buffer<ArrayBuffer>;
154
+ readonly responseDeserialize: (value: Buffer) => Operation;
155
+ };
156
+ readonly stop: {
157
+ readonly path: "/nebius.ai.v1.EndpointService/Stop";
158
+ readonly requestStream: false;
159
+ readonly responseStream: false;
160
+ readonly requestSerialize: (value: StopEndpointRequest) => Buffer<ArrayBuffer>;
161
+ readonly sendResetMask: false;
162
+ readonly requestDeserialize: (value: Buffer) => StopEndpointRequest;
163
+ readonly responseSerialize: (value: Operation) => Buffer<ArrayBuffer>;
164
+ readonly responseDeserialize: (value: Buffer) => Operation;
165
+ };
166
+ };
167
+ export interface EndpointServiceServer extends UntypedServiceImplementation {
168
+ get: handleUnaryCall<GetEndpointRequest, Endpoint>;
169
+ getByName: handleUnaryCall<GetEndpointByNameRequest, Endpoint>;
170
+ list: handleUnaryCall<ListEndpointsRequest, ListEndpointsResponse>;
171
+ create: handleUnaryCall<CreateEndpointRequest, Operation>;
172
+ delete: handleUnaryCall<DeleteEndpointRequest, Operation>;
173
+ update: handleUnaryCall<UpdateEndpointRequest, Operation>;
174
+ start: handleUnaryCall<StartEndpointRequest, Operation>;
175
+ stop: handleUnaryCall<StopEndpointRequest, Operation>;
176
+ }
177
+ export interface EndpointServiceBaseClient extends Client {
178
+ get(request: GetEndpointRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: GrpcServiceError | null, response: Endpoint) => void): ClientUnaryCall;
179
+ getByName(request: GetEndpointByNameRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: GrpcServiceError | null, response: Endpoint) => void): ClientUnaryCall;
180
+ list(request: ListEndpointsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: GrpcServiceError | null, response: ListEndpointsResponse) => void): ClientUnaryCall;
181
+ create(request: CreateEndpointRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: GrpcServiceError | null, response: Operation) => void): ClientUnaryCall;
182
+ delete(request: DeleteEndpointRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: GrpcServiceError | null, response: Operation) => void): ClientUnaryCall;
183
+ update(request: UpdateEndpointRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: GrpcServiceError | null, response: Operation) => void): ClientUnaryCall;
184
+ start(request: StartEndpointRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: GrpcServiceError | null, response: Operation) => void): ClientUnaryCall;
185
+ stop(request: StopEndpointRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: GrpcServiceError | null, response: Operation) => void): ClientUnaryCall;
186
+ }
187
+ export declare const EndpointServiceBaseClient: {
188
+ new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): EndpointServiceBaseClient;
189
+ service: typeof EndpointServiceServiceDescription;
190
+ serviceName: string;
191
+ };
192
+ /**
193
+ * Service to create/manage endpoints.
194
+ *
195
+ */
196
+ export interface EndpointService {
197
+ $type: "nebius.ai.v1.EndpointService";
198
+ /**
199
+ * Returns the specified endpoint.
200
+ *
201
+ */
202
+ get(request: GetEndpointRequest): SDKRequestClass<GetEndpointRequest, Endpoint>;
203
+ get(request: GetEndpointRequest, metadata: Metadata): SDKRequestClass<GetEndpointRequest, Endpoint>;
204
+ get(request: GetEndpointRequest, metadata: Metadata, options: Partial<CallOptions> & RetryOptions): SDKRequestClass<GetEndpointRequest, Endpoint>;
205
+ /**
206
+ * Returns the specified endpoint by name.
207
+ *
208
+ */
209
+ getByName(request: GetEndpointByNameRequest): SDKRequestClass<GetEndpointByNameRequest, Endpoint>;
210
+ getByName(request: GetEndpointByNameRequest, metadata: Metadata): SDKRequestClass<GetEndpointByNameRequest, Endpoint>;
211
+ getByName(request: GetEndpointByNameRequest, metadata: Metadata, options: Partial<CallOptions> & RetryOptions): SDKRequestClass<GetEndpointByNameRequest, Endpoint>;
212
+ /**
213
+ * Retrieves a list of endpoints.
214
+ *
215
+ */
216
+ list(request: ListEndpointsRequest): SDKRequestClass<ListEndpointsRequest, ListEndpointsResponse>;
217
+ list(request: ListEndpointsRequest, metadata: Metadata): SDKRequestClass<ListEndpointsRequest, ListEndpointsResponse>;
218
+ list(request: ListEndpointsRequest, metadata: Metadata, options: Partial<CallOptions> & RetryOptions): SDKRequestClass<ListEndpointsRequest, ListEndpointsResponse>;
219
+ /**
220
+ * Creates an endpoint.
221
+ *
222
+ */
223
+ create(request: CreateEndpointRequest): SDKRequestClass<CreateEndpointRequest, OperationWrapper<GetOperationRequest>>;
224
+ create(request: CreateEndpointRequest, metadata: Metadata): SDKRequestClass<CreateEndpointRequest, OperationWrapper<GetOperationRequest>>;
225
+ create(request: CreateEndpointRequest, metadata: Metadata, options: Partial<CallOptions> & RetryOptions): SDKRequestClass<CreateEndpointRequest, OperationWrapper<GetOperationRequest>>;
226
+ /**
227
+ * Deletes an endpoint.
228
+ *
229
+ */
230
+ delete(request: DeleteEndpointRequest): SDKRequestClass<DeleteEndpointRequest, OperationWrapper<GetOperationRequest>>;
231
+ delete(request: DeleteEndpointRequest, metadata: Metadata): SDKRequestClass<DeleteEndpointRequest, OperationWrapper<GetOperationRequest>>;
232
+ delete(request: DeleteEndpointRequest, metadata: Metadata, options: Partial<CallOptions> & RetryOptions): SDKRequestClass<DeleteEndpointRequest, OperationWrapper<GetOperationRequest>>;
233
+ /**
234
+ * Updates an endpoint.
235
+ *
236
+ */
237
+ update(request: UpdateEndpointRequest): SDKRequestClass<UpdateEndpointRequest, OperationWrapper<GetOperationRequest>>;
238
+ update(request: UpdateEndpointRequest, metadata: Metadata): SDKRequestClass<UpdateEndpointRequest, OperationWrapper<GetOperationRequest>>;
239
+ update(request: UpdateEndpointRequest, metadata: Metadata, options: Partial<CallOptions> & RetryOptions): SDKRequestClass<UpdateEndpointRequest, OperationWrapper<GetOperationRequest>>;
240
+ /**
241
+ * Starts an endpoint.
242
+ *
243
+ */
244
+ start(request: StartEndpointRequest): SDKRequestClass<StartEndpointRequest, OperationWrapper<GetOperationRequest>>;
245
+ start(request: StartEndpointRequest, metadata: Metadata): SDKRequestClass<StartEndpointRequest, OperationWrapper<GetOperationRequest>>;
246
+ start(request: StartEndpointRequest, metadata: Metadata, options: Partial<CallOptions> & RetryOptions): SDKRequestClass<StartEndpointRequest, OperationWrapper<GetOperationRequest>>;
247
+ /**
248
+ * Stops an endpoint.
249
+ *
250
+ */
251
+ stop(request: StopEndpointRequest): SDKRequestClass<StopEndpointRequest, OperationWrapper<GetOperationRequest>>;
252
+ stop(request: StopEndpointRequest, metadata: Metadata): SDKRequestClass<StopEndpointRequest, OperationWrapper<GetOperationRequest>>;
253
+ stop(request: StopEndpointRequest, metadata: Metadata, options: Partial<CallOptions> & RetryOptions): SDKRequestClass<StopEndpointRequest, OperationWrapper<GetOperationRequest>>;
254
+ }
255
+ export declare class EndpointService implements EndpointService {
256
+ private sdk;
257
+ $type: "nebius.ai.v1.EndpointService";
258
+ private addr;
259
+ private spec;
260
+ private apiServiceName;
261
+ constructor(sdk: SDKInterface);
262
+ getOperationService(): OperationService;
263
+ get(request: GetEndpointRequest): SDKRequestClass<GetEndpointRequest, Endpoint>;
264
+ get(request: GetEndpointRequest, metadata: Metadata): SDKRequestClass<GetEndpointRequest, Endpoint>;
265
+ get(request: GetEndpointRequest, metadata: Metadata, options: Partial<CallOptions> & RetryOptions): SDKRequestClass<GetEndpointRequest, Endpoint>;
266
+ getByName(request: GetEndpointByNameRequest): SDKRequestClass<GetEndpointByNameRequest, Endpoint>;
267
+ getByName(request: GetEndpointByNameRequest, metadata: Metadata): SDKRequestClass<GetEndpointByNameRequest, Endpoint>;
268
+ getByName(request: GetEndpointByNameRequest, metadata: Metadata, options: Partial<CallOptions> & RetryOptions): SDKRequestClass<GetEndpointByNameRequest, Endpoint>;
269
+ list(request: ListEndpointsRequest): SDKRequestClass<ListEndpointsRequest, ListEndpointsResponse>;
270
+ list(request: ListEndpointsRequest, metadata: Metadata): SDKRequestClass<ListEndpointsRequest, ListEndpointsResponse>;
271
+ list(request: ListEndpointsRequest, metadata: Metadata, options: Partial<CallOptions> & RetryOptions): SDKRequestClass<ListEndpointsRequest, ListEndpointsResponse>;
272
+ create(request: CreateEndpointRequest): SDKRequestClass<CreateEndpointRequest, OperationWrapper<GetOperationRequest>>;
273
+ create(request: CreateEndpointRequest, metadata: Metadata): SDKRequestClass<CreateEndpointRequest, OperationWrapper<GetOperationRequest>>;
274
+ create(request: CreateEndpointRequest, metadata: Metadata, options: Partial<CallOptions> & RetryOptions): SDKRequestClass<CreateEndpointRequest, OperationWrapper<GetOperationRequest>>;
275
+ delete(request: DeleteEndpointRequest): SDKRequestClass<DeleteEndpointRequest, OperationWrapper<GetOperationRequest>>;
276
+ delete(request: DeleteEndpointRequest, metadata: Metadata): SDKRequestClass<DeleteEndpointRequest, OperationWrapper<GetOperationRequest>>;
277
+ delete(request: DeleteEndpointRequest, metadata: Metadata, options: Partial<CallOptions> & RetryOptions): SDKRequestClass<DeleteEndpointRequest, OperationWrapper<GetOperationRequest>>;
278
+ update(request: UpdateEndpointRequest): SDKRequestClass<UpdateEndpointRequest, OperationWrapper<GetOperationRequest>>;
279
+ update(request: UpdateEndpointRequest, metadata: Metadata): SDKRequestClass<UpdateEndpointRequest, OperationWrapper<GetOperationRequest>>;
280
+ update(request: UpdateEndpointRequest, metadata: Metadata, options: Partial<CallOptions> & RetryOptions): SDKRequestClass<UpdateEndpointRequest, OperationWrapper<GetOperationRequest>>;
281
+ start(request: StartEndpointRequest): SDKRequestClass<StartEndpointRequest, OperationWrapper<GetOperationRequest>>;
282
+ start(request: StartEndpointRequest, metadata: Metadata): SDKRequestClass<StartEndpointRequest, OperationWrapper<GetOperationRequest>>;
283
+ start(request: StartEndpointRequest, metadata: Metadata, options: Partial<CallOptions> & RetryOptions): SDKRequestClass<StartEndpointRequest, OperationWrapper<GetOperationRequest>>;
284
+ stop(request: StopEndpointRequest): SDKRequestClass<StopEndpointRequest, OperationWrapper<GetOperationRequest>>;
285
+ stop(request: StopEndpointRequest, metadata: Metadata): SDKRequestClass<StopEndpointRequest, OperationWrapper<GetOperationRequest>>;
286
+ stop(request: StopEndpointRequest, metadata: Metadata, options: Partial<CallOptions> & RetryOptions): SDKRequestClass<StopEndpointRequest, OperationWrapper<GetOperationRequest>>;
287
+ }
288
+ /**
289
+ * Represents protocol of the endpoint's port which will be exposed.
290
+ *
291
+ */
292
+ export type EndpointSpec_Port_Protocol = EnumInstance<"UNRECOGNIZED" | "PROTOCOL_UNSPECIFIED" | "HTTP" | "TCP" | "UDP">;
293
+ interface EndpointSpec_Port_ProtocolValueMembers {
294
+ readonly PROTOCOL_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "PROTOCOL_UNSPECIFIED" | "HTTP" | "TCP" | "UDP">;
295
+ /**
296
+ * HTTP protocol.
297
+ *
298
+ */
299
+ readonly HTTP: EnumInstance<"UNRECOGNIZED" | "PROTOCOL_UNSPECIFIED" | "HTTP" | "TCP" | "UDP">;
300
+ /**
301
+ * TCP protocol.
302
+ *
303
+ */
304
+ readonly TCP: EnumInstance<"UNRECOGNIZED" | "PROTOCOL_UNSPECIFIED" | "HTTP" | "TCP" | "UDP">;
305
+ /**
306
+ * UDP protocol.
307
+ *
308
+ */
309
+ readonly UDP: EnumInstance<"UNRECOGNIZED" | "PROTOCOL_UNSPECIFIED" | "HTTP" | "TCP" | "UDP">;
310
+ }
311
+ export type EndpointSpec_Port_ProtocolClass = EnumClass<"UNRECOGNIZED" | "PROTOCOL_UNSPECIFIED" | "HTTP" | "TCP" | "UDP"> & EndpointSpec_Port_ProtocolValueMembers;
312
+ export declare const EndpointSpec_Port_Protocol: EndpointSpec_Port_ProtocolClass;
313
+ /**
314
+ * Mode that will be used to mount the volume.
315
+ *
316
+ */
317
+ export type EndpointSpec_VolumeMount_Mode = EnumInstance<"UNRECOGNIZED" | "MODE_UNSPECIFIED" | "READ_ONLY" | "READ_WRITE">;
318
+ interface EndpointSpec_VolumeMount_ModeValueMembers {
319
+ readonly MODE_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "MODE_UNSPECIFIED" | "READ_ONLY" | "READ_WRITE">;
320
+ /**
321
+ * Read-only mode.
322
+ *
323
+ */
324
+ readonly READ_ONLY: EnumInstance<"UNRECOGNIZED" | "MODE_UNSPECIFIED" | "READ_ONLY" | "READ_WRITE">;
325
+ /**
326
+ * Read-write mode.
327
+ *
328
+ */
329
+ readonly READ_WRITE: EnumInstance<"UNRECOGNIZED" | "MODE_UNSPECIFIED" | "READ_ONLY" | "READ_WRITE">;
330
+ }
331
+ export type EndpointSpec_VolumeMount_ModeClass = EnumClass<"UNRECOGNIZED" | "MODE_UNSPECIFIED" | "READ_ONLY" | "READ_WRITE"> & EndpointSpec_VolumeMount_ModeValueMembers;
332
+ export declare const EndpointSpec_VolumeMount_Mode: EndpointSpec_VolumeMount_ModeClass;
333
+ /**
334
+ * Endpoint state.
335
+ *
336
+ */
337
+ export type EndpointStatus_State = EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "ERROR">;
338
+ interface EndpointStatus_StateValueMembers {
339
+ readonly STATE_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "ERROR">;
340
+ /**
341
+ * The endpoint is creating resources.
342
+ *
343
+ */
344
+ readonly PROVISIONING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "ERROR">;
345
+ /**
346
+ * The endpoint is being started.
347
+ *
348
+ */
349
+ readonly STARTING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "ERROR">;
350
+ /**
351
+ * The endpoint is running.
352
+ *
353
+ */
354
+ readonly RUNNING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "ERROR">;
355
+ /**
356
+ * The endpoint is being stopped.
357
+ *
358
+ */
359
+ readonly STOPPING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "ERROR">;
360
+ /**
361
+ * The endpoint is being deleted.
362
+ *
363
+ */
364
+ readonly DELETING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "ERROR">;
365
+ /**
366
+ * The endpoint has been stopped.
367
+ *
368
+ */
369
+ readonly STOPPED: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "ERROR">;
370
+ /**
371
+ * The endpoint encountered an error.
372
+ *
373
+ */
374
+ readonly ERROR: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "ERROR">;
375
+ }
376
+ export type EndpointStatus_StateClass = EnumClass<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "ERROR"> & EndpointStatus_StateValueMembers;
377
+ export declare const EndpointStatus_State: EndpointStatus_StateClass;
378
+ /**
379
+ * Endpoint instance state.
380
+ *
381
+ */
382
+ export type EndpointInstanceStatus_State = EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "FAILED" | "ERROR">;
383
+ interface EndpointInstanceStatus_StateValueMembers {
384
+ readonly STATE_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "FAILED" | "ERROR">;
385
+ /**
386
+ * The endpoint is creating resources.
387
+ *
388
+ */
389
+ readonly PROVISIONING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "FAILED" | "ERROR">;
390
+ /**
391
+ * The endpoint is being started.
392
+ *
393
+ */
394
+ readonly STARTING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "FAILED" | "ERROR">;
395
+ /**
396
+ * The endpoint is running.
397
+ *
398
+ */
399
+ readonly RUNNING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "FAILED" | "ERROR">;
400
+ /**
401
+ * The endpoint is being stopped.
402
+ *
403
+ */
404
+ readonly STOPPING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "FAILED" | "ERROR">;
405
+ /**
406
+ * The endpoint is being deleted.
407
+ *
408
+ */
409
+ readonly DELETING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "FAILED" | "ERROR">;
410
+ /**
411
+ * The endpoint has been stopped.
412
+ *
413
+ */
414
+ readonly STOPPED: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "FAILED" | "ERROR">;
415
+ /**
416
+ * The endpoint has failed.
417
+ *
418
+ */
419
+ readonly FAILED: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "FAILED" | "ERROR">;
420
+ /**
421
+ * The endpoint encountered an error.
422
+ *
423
+ */
424
+ readonly ERROR: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "FAILED" | "ERROR">;
425
+ }
426
+ export type EndpointInstanceStatus_StateClass = EnumClass<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "STOPPING" | "DELETING" | "STOPPED" | "FAILED" | "ERROR"> & EndpointInstanceStatus_StateValueMembers;
427
+ export declare const EndpointInstanceStatus_State: EndpointInstanceStatus_StateClass;
428
+ /**
429
+ * Represents an endpoint with a specified workload.
430
+ *
431
+ */
432
+ export interface Endpoint {
433
+ $type: "nebius.ai.v1.Endpoint";
434
+ [unknownFieldsSymbol]?: Uint8Array | undefined;
435
+ [customJson]?: () => unknown;
436
+ metadata?: ResourceMetadata | undefined;
437
+ spec?: EndpointSpec | undefined;
438
+ status?: EndpointStatus | undefined;
439
+ }
440
+ export declare const Endpoint: MessageFns<Endpoint, "nebius.ai.v1.Endpoint">;
441
+ /**
442
+ * EndpointSpec defines a endpoint that will be run.
443
+ *
444
+ */
445
+ export interface EndpointSpec {
446
+ $type: "nebius.ai.v1.EndpointSpec";
447
+ [unknownFieldsSymbol]?: Uint8Array | undefined;
448
+ [customJson]?: () => unknown;
449
+ /**
450
+ * The Docker image to use for the endpoint's container.
451
+ *
452
+ */
453
+ image: string;
454
+ /**
455
+ * Specifies the environment variables for the endpoint's container.
456
+ *
457
+ */
458
+ environmentVariables: EndpointSpec_EnvironmentVariable[];
459
+ /**
460
+ * Specifies the ports that the endpoint exposes.
461
+ *
462
+ */
463
+ ports: EndpointSpec_Port[];
464
+ /**
465
+ * The entrypoint command for the endpoint's container.
466
+ *
467
+ */
468
+ containerCommand: string;
469
+ /**
470
+ * The arguments to pass to the entrypoint command.
471
+ *
472
+ */
473
+ args: string;
474
+ /**
475
+ * The working directory for the endpoint's container.
476
+ *
477
+ */
478
+ workingDir: string;
479
+ /**
480
+ * Volumes to be mounted into the endpoint's container.
481
+ *
482
+ */
483
+ volumes: EndpointSpec_VolumeMount[];
484
+ /**
485
+ * Registry credentials for private Docker registry.
486
+ *
487
+ */
488
+ registryCredentials?: EndpointSpec_RegistryCredentials | undefined;
489
+ /**
490
+ * Compute platform that the endpoint will be run on.
491
+ *
492
+ */
493
+ platform: string;
494
+ /**
495
+ * Compute preset that the endpoint will be run on.
496
+ *
497
+ */
498
+ preset: string;
499
+ /**
500
+ * Shared memory size in bytes for the endpoint's container.
501
+ *
502
+ */
503
+ shmSizeBytes: Long;
504
+ /**
505
+ * Disk spec for the main disk of the endpoint.
506
+ *
507
+ */
508
+ disk?: EndpointSpec_DiskSpec | undefined;
509
+ /**
510
+ * Subnet ID where the endpoint will be deployed.
511
+ *
512
+ */
513
+ subnetId: string;
514
+ /**
515
+ * Whether to assign a public IP to the endpoint.
516
+ *
517
+ */
518
+ publicIp: boolean;
519
+ /**
520
+ * Public keys to be authorized for SSH access to the job.
521
+ *
522
+ */
523
+ sshAuthorizedKeys: string[];
524
+ /**
525
+ * Authentication token needed to access the endpoint.
526
+ *
527
+ * Authentication can only be enabled if the endpoint exposes one and only one HTTP port.
528
+ *
529
+ * If not provided, a authentication will be disabled.
530
+ *
531
+ */
532
+ authToken: string;
533
+ }
534
+ export declare const EndpointSpec: MessageFns<EndpointSpec, "nebius.ai.v1.EndpointSpec">;
535
+ /**
536
+ * EnvironmentVariable defines an environment variable for the endpoint's container.
537
+ *
538
+ */
539
+ export interface EndpointSpec_EnvironmentVariable {
540
+ $type: "nebius.ai.v1.EndpointSpec.EnvironmentVariable";
541
+ [unknownFieldsSymbol]?: Uint8Array | undefined;
542
+ [customJson]?: () => unknown;
543
+ /**
544
+ * The name of the environment variable.
545
+ *
546
+ */
547
+ name: string;
548
+ /**
549
+ * Environment variable value.
550
+ *
551
+ */
552
+ value: string;
553
+ }
554
+ export declare const EndpointSpec_EnvironmentVariable: MessageFns<EndpointSpec_EnvironmentVariable, "nebius.ai.v1.EndpointSpec.EnvironmentVariable">;
555
+ export interface EndpointSpec_Port {
556
+ $type: "nebius.ai.v1.EndpointSpec.Port";
557
+ [unknownFieldsSymbol]?: Uint8Array | undefined;
558
+ [customJson]?: () => unknown;
559
+ /**
560
+ * Container port.
561
+ *
562
+ */
563
+ containerPort: number;
564
+ /**
565
+ * Host port.
566
+ *
567
+ * If not specified, will be same as container_port.
568
+ *
569
+ */
570
+ hostPort: number;
571
+ /**
572
+ * Port's protocol.
573
+ *
574
+ */
575
+ protocol: EndpointSpec_Port_Protocol;
576
+ }
577
+ export declare const EndpointSpec_Port: MessageFns<EndpointSpec_Port, "nebius.ai.v1.EndpointSpec.Port">;
578
+ /**
579
+ * VolumeMount represents a volume mount for the endpoint's container.
580
+ *
581
+ */
582
+ export interface EndpointSpec_VolumeMount {
583
+ $type: "nebius.ai.v1.EndpointSpec.VolumeMount";
584
+ [unknownFieldsSymbol]?: Uint8Array | undefined;
585
+ [customJson]?: () => unknown;
586
+ /**
587
+ * Source of the volume mount.
588
+ *
589
+ * Can be a name of an ID of Nebius Storage bucket or filesystem.
590
+ *
591
+ */
592
+ source: string;
593
+ /**
594
+ * Path inside the source volume.
595
+ *
596
+ * Optional.
597
+ *
598
+ */
599
+ sourcePath: string;
600
+ /**
601
+ * Path inside the endpoint's container where the volume is mounted.
602
+ *
603
+ * Must be an absolute path.
604
+ *
605
+ */
606
+ containerPath: string;
607
+ /**
608
+ * Mount mode.
609
+ *
610
+ */
611
+ mode: EndpointSpec_VolumeMount_Mode;
612
+ }
613
+ export declare const EndpointSpec_VolumeMount: MessageFns<EndpointSpec_VolumeMount, "nebius.ai.v1.EndpointSpec.VolumeMount">;
614
+ export interface EndpointSpec_DiskSpec {
615
+ $type: "nebius.ai.v1.EndpointSpec.DiskSpec";
616
+ [unknownFieldsSymbol]?: Uint8Array | undefined;
617
+ [customJson]?: () => unknown;
618
+ /**
619
+ * Disk type.
620
+ *
621
+ */
622
+ type: DiskSpec_DiskType;
623
+ /**
624
+ * Disk size in bytes.
625
+ *
626
+ */
627
+ sizeBytes: Long;
628
+ }
629
+ export declare const EndpointSpec_DiskSpec: MessageFns<EndpointSpec_DiskSpec, "nebius.ai.v1.EndpointSpec.DiskSpec">;
630
+ export interface EndpointSpec_RegistryCredentials {
631
+ $type: "nebius.ai.v1.EndpointSpec.RegistryCredentials";
632
+ [unknownFieldsSymbol]?: Uint8Array | undefined;
633
+ [customJson]?: () => unknown;
634
+ /**
635
+ * Registry username for private Docker registry.
636
+ *
637
+ */
638
+ username: string;
639
+ /**
640
+ * Registry password for private Docker registry.
641
+ *
642
+ */
643
+ password: string;
644
+ /**
645
+ * Secret version storing the registry credentials.
646
+ * Must have keys "REGISTRY_USERNAME" and "REGISTRY_PASSWORD".
647
+ *
648
+ */
649
+ mysteryboxSecretVersion: string;
650
+ }
651
+ export declare const EndpointSpec_RegistryCredentials: MessageFns<EndpointSpec_RegistryCredentials, "nebius.ai.v1.EndpointSpec.RegistryCredentials">;
652
+ /**
653
+ * EndpointStatus represents the status of a VM app.
654
+ *
655
+ */
656
+ export interface EndpointStatus {
657
+ $type: "nebius.ai.v1.EndpointStatus";
658
+ [unknownFieldsSymbol]?: Uint8Array | undefined;
659
+ [customJson]?: () => unknown;
660
+ /**
661
+ * Private endpoints to access the workload.
662
+ *
663
+ */
664
+ privateEndpoints: string[];
665
+ /**
666
+ * Public endpoints to access the workload.
667
+ *
668
+ */
669
+ publicEndpoints: string[];
670
+ /**
671
+ * Status of individual endpoint instances.
672
+ *
673
+ */
674
+ instances: EndpointInstanceStatus[];
675
+ /**
676
+ * State of the endpoint.
677
+ *
678
+ */
679
+ state: EndpointStatus_State;
680
+ /**
681
+ * Details of the endpoint's state.
682
+ *
683
+ */
684
+ stateDetails?: EndpointStateDetails | undefined;
685
+ }
686
+ export declare const EndpointStatus: MessageFns<EndpointStatus, "nebius.ai.v1.EndpointStatus">;
687
+ /**
688
+ * Endpoint state details.
689
+ *
690
+ */
691
+ export interface EndpointStateDetails {
692
+ $type: "nebius.ai.v1.EndpointStateDetails";
693
+ [unknownFieldsSymbol]?: Uint8Array | undefined;
694
+ [customJson]?: () => unknown;
695
+ /**
696
+ * Short state description.
697
+ *
698
+ */
699
+ code: string;
700
+ /**
701
+ * Detailed human-readable description.
702
+ *
703
+ */
704
+ message: string;
705
+ }
706
+ export declare const EndpointStateDetails: MessageFns<EndpointStateDetails, "nebius.ai.v1.EndpointStateDetails">;
707
+ /**
708
+ * EndpointInstanceStatus represents the status of a endpoint instance.
709
+ *
710
+ */
711
+ export interface EndpointInstanceStatus {
712
+ $type: "nebius.ai.v1.EndpointInstanceStatus";
713
+ [unknownFieldsSymbol]?: Uint8Array | undefined;
714
+ [customJson]?: () => unknown;
715
+ /**
716
+ * The current state of the endpoint's workload.
717
+ *
718
+ */
719
+ state: EndpointInstanceStatus_State;
720
+ /**
721
+ * ID of the compute instance running the endpoint.
722
+ *
723
+ */
724
+ computeInstanceId: string;
725
+ /**
726
+ * The current state of the compute instance.
727
+ *
728
+ */
729
+ computeInstanceState: InstanceStatus_InstanceState;
730
+ /**
731
+ * Private IP address of the instance.
732
+ *
733
+ */
734
+ privateIp: string;
735
+ /**
736
+ * Public IP address of the instance.
737
+ *
738
+ */
739
+ publicIp: string;
740
+ }
741
+ export declare const EndpointInstanceStatus: MessageFns<EndpointInstanceStatus, "nebius.ai.v1.EndpointInstanceStatus">;
742
+ export interface GetJobRequest {
743
+ $type: "nebius.ai.v1.GetJobRequest";
744
+ [unknownFieldsSymbol]?: Uint8Array | undefined;
745
+ [customJson]?: () => unknown;
746
+ id: string;
747
+ }
748
+ export declare const GetJobRequest: MessageFns<GetJobRequest, "nebius.ai.v1.GetJobRequest">;
749
+ export interface GetJobByNameRequest {
750
+ $type: "nebius.ai.v1.GetJobByNameRequest";
751
+ [unknownFieldsSymbol]?: Uint8Array | undefined;
752
+ [customJson]?: () => unknown;
753
+ parentId: string;
754
+ name: string;
755
+ }
756
+ export declare const GetJobByNameRequest: MessageFns<GetJobByNameRequest, "nebius.ai.v1.GetJobByNameRequest">;
757
+ export interface ListJobsRequest {
758
+ $type: "nebius.ai.v1.ListJobsRequest";
759
+ [unknownFieldsSymbol]?: Uint8Array | undefined;
760
+ [customJson]?: () => unknown;
761
+ parentId: string;
762
+ pageSize: Long;
763
+ pageToken: string;
764
+ }
765
+ export declare const ListJobsRequest: MessageFns<ListJobsRequest, "nebius.ai.v1.ListJobsRequest">;
766
+ export interface CreateJobRequest {
767
+ $type: "nebius.ai.v1.CreateJobRequest";
768
+ [unknownFieldsSymbol]?: Uint8Array | undefined;
769
+ [customJson]?: () => unknown;
770
+ metadata?: ResourceMetadata | undefined;
771
+ spec?: JobSpec | undefined;
772
+ /**
773
+ * Dry run creation of the job.
774
+ *
775
+ */
776
+ dryRun: boolean;
777
+ }
778
+ export declare const CreateJobRequest: MessageFns<CreateJobRequest, "nebius.ai.v1.CreateJobRequest">;
779
+ export interface DeleteJobRequest {
780
+ $type: "nebius.ai.v1.DeleteJobRequest";
781
+ [unknownFieldsSymbol]?: Uint8Array | undefined;
782
+ [customJson]?: () => unknown;
783
+ id: string;
784
+ }
785
+ export declare const DeleteJobRequest: MessageFns<DeleteJobRequest, "nebius.ai.v1.DeleteJobRequest">;
786
+ export interface CancelJobRequest {
787
+ $type: "nebius.ai.v1.CancelJobRequest";
788
+ [unknownFieldsSymbol]?: Uint8Array | undefined;
789
+ [customJson]?: () => unknown;
790
+ id: string;
791
+ }
792
+ export declare const CancelJobRequest: MessageFns<CancelJobRequest, "nebius.ai.v1.CancelJobRequest">;
793
+ export interface ListJobsResponse {
794
+ $type: "nebius.ai.v1.ListJobsResponse";
795
+ [unknownFieldsSymbol]?: Uint8Array | undefined;
796
+ [customJson]?: () => unknown;
797
+ items: Job[];
798
+ nextPageToken: string;
799
+ }
800
+ export declare const ListJobsResponse: MessageFns<ListJobsResponse, "nebius.ai.v1.ListJobsResponse">;
801
+ export type JobServiceServiceDescription = typeof JobServiceServiceDescription;
802
+ export declare const JobServiceServiceDescription: {
803
+ readonly get: {
804
+ readonly path: "/nebius.ai.v1.JobService/Get";
805
+ readonly requestStream: false;
806
+ readonly responseStream: false;
807
+ readonly requestSerialize: (value: GetJobRequest) => Buffer<ArrayBuffer>;
808
+ readonly sendResetMask: false;
809
+ readonly requestDeserialize: (value: Buffer) => GetJobRequest;
810
+ readonly responseSerialize: (value: Job) => Buffer<ArrayBuffer>;
811
+ readonly responseDeserialize: (value: Buffer) => Job;
812
+ };
813
+ readonly getByName: {
814
+ readonly path: "/nebius.ai.v1.JobService/GetByName";
815
+ readonly requestStream: false;
816
+ readonly responseStream: false;
817
+ readonly requestSerialize: (value: GetJobByNameRequest) => Buffer<ArrayBuffer>;
818
+ readonly sendResetMask: false;
819
+ readonly requestDeserialize: (value: Buffer) => GetJobByNameRequest;
820
+ readonly responseSerialize: (value: Job) => Buffer<ArrayBuffer>;
821
+ readonly responseDeserialize: (value: Buffer) => Job;
822
+ };
823
+ readonly list: {
824
+ readonly path: "/nebius.ai.v1.JobService/List";
825
+ readonly requestStream: false;
826
+ readonly responseStream: false;
827
+ readonly requestSerialize: (value: ListJobsRequest) => Buffer<ArrayBuffer>;
828
+ readonly sendResetMask: false;
829
+ readonly requestDeserialize: (value: Buffer) => ListJobsRequest;
830
+ readonly responseSerialize: (value: ListJobsResponse) => Buffer<ArrayBuffer>;
831
+ readonly responseDeserialize: (value: Buffer) => ListJobsResponse;
832
+ };
833
+ readonly create: {
834
+ readonly path: "/nebius.ai.v1.JobService/Create";
835
+ readonly requestStream: false;
836
+ readonly responseStream: false;
837
+ readonly requestSerialize: (value: CreateJobRequest) => Buffer<ArrayBuffer>;
838
+ readonly sendResetMask: false;
839
+ readonly requestDeserialize: (value: Buffer) => CreateJobRequest;
840
+ readonly responseSerialize: (value: Operation) => Buffer<ArrayBuffer>;
841
+ readonly responseDeserialize: (value: Buffer) => Operation;
842
+ };
843
+ readonly delete: {
844
+ readonly path: "/nebius.ai.v1.JobService/Delete";
845
+ readonly requestStream: false;
846
+ readonly responseStream: false;
847
+ readonly requestSerialize: (value: DeleteJobRequest) => Buffer<ArrayBuffer>;
848
+ readonly sendResetMask: false;
849
+ readonly requestDeserialize: (value: Buffer) => DeleteJobRequest;
850
+ readonly responseSerialize: (value: Operation) => Buffer<ArrayBuffer>;
851
+ readonly responseDeserialize: (value: Buffer) => Operation;
852
+ };
853
+ readonly cancel: {
854
+ readonly path: "/nebius.ai.v1.JobService/Cancel";
855
+ readonly requestStream: false;
856
+ readonly responseStream: false;
857
+ readonly requestSerialize: (value: CancelJobRequest) => Buffer<ArrayBuffer>;
858
+ readonly sendResetMask: false;
859
+ readonly requestDeserialize: (value: Buffer) => CancelJobRequest;
860
+ readonly responseSerialize: (value: Operation) => Buffer<ArrayBuffer>;
861
+ readonly responseDeserialize: (value: Buffer) => Operation;
862
+ };
863
+ };
864
+ export interface JobServiceServer extends UntypedServiceImplementation {
865
+ get: handleUnaryCall<GetJobRequest, Job>;
866
+ getByName: handleUnaryCall<GetJobByNameRequest, Job>;
867
+ list: handleUnaryCall<ListJobsRequest, ListJobsResponse>;
868
+ create: handleUnaryCall<CreateJobRequest, Operation>;
869
+ delete: handleUnaryCall<DeleteJobRequest, Operation>;
870
+ cancel: handleUnaryCall<CancelJobRequest, Operation>;
871
+ }
872
+ export interface JobServiceBaseClient extends Client {
873
+ get(request: GetJobRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: GrpcServiceError | null, response: Job) => void): ClientUnaryCall;
874
+ getByName(request: GetJobByNameRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: GrpcServiceError | null, response: Job) => void): ClientUnaryCall;
875
+ list(request: ListJobsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: GrpcServiceError | null, response: ListJobsResponse) => void): ClientUnaryCall;
876
+ create(request: CreateJobRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: GrpcServiceError | null, response: Operation) => void): ClientUnaryCall;
877
+ delete(request: DeleteJobRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: GrpcServiceError | null, response: Operation) => void): ClientUnaryCall;
878
+ cancel(request: CancelJobRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: GrpcServiceError | null, response: Operation) => void): ClientUnaryCall;
879
+ }
880
+ export declare const JobServiceBaseClient: {
881
+ new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): JobServiceBaseClient;
882
+ service: typeof JobServiceServiceDescription;
883
+ serviceName: string;
884
+ };
885
+ /**
886
+ * Service to create/manage jobs.
887
+ *
888
+ */
889
+ export interface JobService {
890
+ $type: "nebius.ai.v1.JobService";
891
+ /**
892
+ * Returns the specified job.
893
+ *
894
+ */
895
+ get(request: GetJobRequest): SDKRequestClass<GetJobRequest, Job>;
896
+ get(request: GetJobRequest, metadata: Metadata): SDKRequestClass<GetJobRequest, Job>;
897
+ get(request: GetJobRequest, metadata: Metadata, options: Partial<CallOptions> & RetryOptions): SDKRequestClass<GetJobRequest, Job>;
898
+ /**
899
+ * Returns the specified job by name.
900
+ *
901
+ */
902
+ getByName(request: GetJobByNameRequest): SDKRequestClass<GetJobByNameRequest, Job>;
903
+ getByName(request: GetJobByNameRequest, metadata: Metadata): SDKRequestClass<GetJobByNameRequest, Job>;
904
+ getByName(request: GetJobByNameRequest, metadata: Metadata, options: Partial<CallOptions> & RetryOptions): SDKRequestClass<GetJobByNameRequest, Job>;
905
+ /**
906
+ * Retrieves a list of jobs.
907
+ *
908
+ */
909
+ list(request: ListJobsRequest): SDKRequestClass<ListJobsRequest, ListJobsResponse>;
910
+ list(request: ListJobsRequest, metadata: Metadata): SDKRequestClass<ListJobsRequest, ListJobsResponse>;
911
+ list(request: ListJobsRequest, metadata: Metadata, options: Partial<CallOptions> & RetryOptions): SDKRequestClass<ListJobsRequest, ListJobsResponse>;
912
+ /**
913
+ * Creates a job.
914
+ *
915
+ */
916
+ create(request: CreateJobRequest): SDKRequestClass<CreateJobRequest, OperationWrapper<GetOperationRequest>>;
917
+ create(request: CreateJobRequest, metadata: Metadata): SDKRequestClass<CreateJobRequest, OperationWrapper<GetOperationRequest>>;
918
+ create(request: CreateJobRequest, metadata: Metadata, options: Partial<CallOptions> & RetryOptions): SDKRequestClass<CreateJobRequest, OperationWrapper<GetOperationRequest>>;
919
+ /**
920
+ * Deletes a job.
921
+ *
922
+ */
923
+ delete(request: DeleteJobRequest): SDKRequestClass<DeleteJobRequest, OperationWrapper<GetOperationRequest>>;
924
+ delete(request: DeleteJobRequest, metadata: Metadata): SDKRequestClass<DeleteJobRequest, OperationWrapper<GetOperationRequest>>;
925
+ delete(request: DeleteJobRequest, metadata: Metadata, options: Partial<CallOptions> & RetryOptions): SDKRequestClass<DeleteJobRequest, OperationWrapper<GetOperationRequest>>;
926
+ /**
927
+ * Cancels a job.
928
+ *
929
+ */
930
+ cancel(request: CancelJobRequest): SDKRequestClass<CancelJobRequest, OperationWrapper<GetOperationRequest>>;
931
+ cancel(request: CancelJobRequest, metadata: Metadata): SDKRequestClass<CancelJobRequest, OperationWrapper<GetOperationRequest>>;
932
+ cancel(request: CancelJobRequest, metadata: Metadata, options: Partial<CallOptions> & RetryOptions): SDKRequestClass<CancelJobRequest, OperationWrapper<GetOperationRequest>>;
933
+ }
934
+ export declare class JobService implements JobService {
935
+ private sdk;
936
+ $type: "nebius.ai.v1.JobService";
937
+ private addr;
938
+ private spec;
939
+ private apiServiceName;
940
+ constructor(sdk: SDKInterface);
941
+ getOperationService(): OperationService;
942
+ get(request: GetJobRequest): SDKRequestClass<GetJobRequest, Job>;
943
+ get(request: GetJobRequest, metadata: Metadata): SDKRequestClass<GetJobRequest, Job>;
944
+ get(request: GetJobRequest, metadata: Metadata, options: Partial<CallOptions> & RetryOptions): SDKRequestClass<GetJobRequest, Job>;
945
+ getByName(request: GetJobByNameRequest): SDKRequestClass<GetJobByNameRequest, Job>;
946
+ getByName(request: GetJobByNameRequest, metadata: Metadata): SDKRequestClass<GetJobByNameRequest, Job>;
947
+ getByName(request: GetJobByNameRequest, metadata: Metadata, options: Partial<CallOptions> & RetryOptions): SDKRequestClass<GetJobByNameRequest, Job>;
948
+ list(request: ListJobsRequest): SDKRequestClass<ListJobsRequest, ListJobsResponse>;
949
+ list(request: ListJobsRequest, metadata: Metadata): SDKRequestClass<ListJobsRequest, ListJobsResponse>;
950
+ list(request: ListJobsRequest, metadata: Metadata, options: Partial<CallOptions> & RetryOptions): SDKRequestClass<ListJobsRequest, ListJobsResponse>;
951
+ create(request: CreateJobRequest): SDKRequestClass<CreateJobRequest, OperationWrapper<GetOperationRequest>>;
952
+ create(request: CreateJobRequest, metadata: Metadata): SDKRequestClass<CreateJobRequest, OperationWrapper<GetOperationRequest>>;
953
+ create(request: CreateJobRequest, metadata: Metadata, options: Partial<CallOptions> & RetryOptions): SDKRequestClass<CreateJobRequest, OperationWrapper<GetOperationRequest>>;
954
+ delete(request: DeleteJobRequest): SDKRequestClass<DeleteJobRequest, OperationWrapper<GetOperationRequest>>;
955
+ delete(request: DeleteJobRequest, metadata: Metadata): SDKRequestClass<DeleteJobRequest, OperationWrapper<GetOperationRequest>>;
956
+ delete(request: DeleteJobRequest, metadata: Metadata, options: Partial<CallOptions> & RetryOptions): SDKRequestClass<DeleteJobRequest, OperationWrapper<GetOperationRequest>>;
957
+ cancel(request: CancelJobRequest): SDKRequestClass<CancelJobRequest, OperationWrapper<GetOperationRequest>>;
958
+ cancel(request: CancelJobRequest, metadata: Metadata): SDKRequestClass<CancelJobRequest, OperationWrapper<GetOperationRequest>>;
959
+ cancel(request: CancelJobRequest, metadata: Metadata, options: Partial<CallOptions> & RetryOptions): SDKRequestClass<CancelJobRequest, OperationWrapper<GetOperationRequest>>;
960
+ }
961
+ /**
962
+ * Represents protocol of the job's port which will be exposed.
963
+ *
964
+ */
965
+ export type JobSpec_Port_Protocol = EnumInstance<"UNRECOGNIZED" | "PROTOCOL_UNSPECIFIED" | "HTTP" | "TCP" | "UDP">;
966
+ interface JobSpec_Port_ProtocolValueMembers {
967
+ readonly PROTOCOL_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "PROTOCOL_UNSPECIFIED" | "HTTP" | "TCP" | "UDP">;
968
+ /**
969
+ * HTTP protocol.
970
+ *
971
+ */
972
+ readonly HTTP: EnumInstance<"UNRECOGNIZED" | "PROTOCOL_UNSPECIFIED" | "HTTP" | "TCP" | "UDP">;
973
+ /**
974
+ * TCP protocol.
975
+ *
976
+ */
977
+ readonly TCP: EnumInstance<"UNRECOGNIZED" | "PROTOCOL_UNSPECIFIED" | "HTTP" | "TCP" | "UDP">;
978
+ /**
979
+ * UDP protocol.
980
+ *
981
+ */
982
+ readonly UDP: EnumInstance<"UNRECOGNIZED" | "PROTOCOL_UNSPECIFIED" | "HTTP" | "TCP" | "UDP">;
983
+ }
984
+ export type JobSpec_Port_ProtocolClass = EnumClass<"UNRECOGNIZED" | "PROTOCOL_UNSPECIFIED" | "HTTP" | "TCP" | "UDP"> & JobSpec_Port_ProtocolValueMembers;
985
+ export declare const JobSpec_Port_Protocol: JobSpec_Port_ProtocolClass;
986
+ /**
987
+ * Mode that will be used to mount the volume.
988
+ *
989
+ */
990
+ export type JobSpec_VolumeMount_Mode = EnumInstance<"UNRECOGNIZED" | "MODE_UNSPECIFIED" | "READ_WRITE" | "READ_ONLY">;
991
+ interface JobSpec_VolumeMount_ModeValueMembers {
992
+ readonly MODE_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "MODE_UNSPECIFIED" | "READ_WRITE" | "READ_ONLY">;
993
+ /**
994
+ * Read-write mode.
995
+ *
996
+ */
997
+ readonly READ_WRITE: EnumInstance<"UNRECOGNIZED" | "MODE_UNSPECIFIED" | "READ_WRITE" | "READ_ONLY">;
998
+ /**
999
+ * Read-only mode.
1000
+ *
1001
+ */
1002
+ readonly READ_ONLY: EnumInstance<"UNRECOGNIZED" | "MODE_UNSPECIFIED" | "READ_WRITE" | "READ_ONLY">;
1003
+ }
1004
+ export type JobSpec_VolumeMount_ModeClass = EnumClass<"UNRECOGNIZED" | "MODE_UNSPECIFIED" | "READ_WRITE" | "READ_ONLY"> & JobSpec_VolumeMount_ModeValueMembers;
1005
+ export declare const JobSpec_VolumeMount_Mode: JobSpec_VolumeMount_ModeClass;
1006
+ /**
1007
+ * Job state.
1008
+ *
1009
+ */
1010
+ export type JobStatus_State = EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "CANCELLING" | "DELETING" | "COMPLETED" | "FAILED" | "CANCELLED" | "ERROR">;
1011
+ interface JobStatus_StateValueMembers {
1012
+ readonly STATE_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "CANCELLING" | "DELETING" | "COMPLETED" | "FAILED" | "CANCELLED" | "ERROR">;
1013
+ /**
1014
+ * The job is creating resources.
1015
+ *
1016
+ */
1017
+ readonly PROVISIONING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "CANCELLING" | "DELETING" | "COMPLETED" | "FAILED" | "CANCELLED" | "ERROR">;
1018
+ /**
1019
+ * The job is being started.
1020
+ *
1021
+ */
1022
+ readonly STARTING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "CANCELLING" | "DELETING" | "COMPLETED" | "FAILED" | "CANCELLED" | "ERROR">;
1023
+ /**
1024
+ * The job is running.
1025
+ *
1026
+ */
1027
+ readonly RUNNING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "CANCELLING" | "DELETING" | "COMPLETED" | "FAILED" | "CANCELLED" | "ERROR">;
1028
+ /**
1029
+ * The job is being cancelled.
1030
+ *
1031
+ */
1032
+ readonly CANCELLING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "CANCELLING" | "DELETING" | "COMPLETED" | "FAILED" | "CANCELLED" | "ERROR">;
1033
+ /**
1034
+ * The job is being deleted.
1035
+ *
1036
+ */
1037
+ readonly DELETING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "CANCELLING" | "DELETING" | "COMPLETED" | "FAILED" | "CANCELLED" | "ERROR">;
1038
+ /**
1039
+ * The job has successfully completed.
1040
+ *
1041
+ */
1042
+ readonly COMPLETED: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "CANCELLING" | "DELETING" | "COMPLETED" | "FAILED" | "CANCELLED" | "ERROR">;
1043
+ /**
1044
+ * The job has failed.
1045
+ *
1046
+ */
1047
+ readonly FAILED: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "CANCELLING" | "DELETING" | "COMPLETED" | "FAILED" | "CANCELLED" | "ERROR">;
1048
+ /**
1049
+ * The job has been cancelled.
1050
+ *
1051
+ */
1052
+ readonly CANCELLED: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "CANCELLING" | "DELETING" | "COMPLETED" | "FAILED" | "CANCELLED" | "ERROR">;
1053
+ /**
1054
+ * The job encountered an internal error.
1055
+ *
1056
+ */
1057
+ readonly ERROR: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "CANCELLING" | "DELETING" | "COMPLETED" | "FAILED" | "CANCELLED" | "ERROR">;
1058
+ }
1059
+ export type JobStatus_StateClass = EnumClass<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "CANCELLING" | "DELETING" | "COMPLETED" | "FAILED" | "CANCELLED" | "ERROR"> & JobStatus_StateValueMembers;
1060
+ export declare const JobStatus_State: JobStatus_StateClass;
1061
+ /**
1062
+ * Job instance state.
1063
+ *
1064
+ */
1065
+ export type JobInstanceStatus_State = EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "COMPLETING" | "CANCELLING" | "DELETING" | "COMPLETED" | "FAILED" | "CANCELLED" | "ERROR">;
1066
+ interface JobInstanceStatus_StateValueMembers {
1067
+ readonly STATE_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "COMPLETING" | "CANCELLING" | "DELETING" | "COMPLETED" | "FAILED" | "CANCELLED" | "ERROR">;
1068
+ /**
1069
+ * The job is creating resources.
1070
+ *
1071
+ */
1072
+ readonly PROVISIONING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "COMPLETING" | "CANCELLING" | "DELETING" | "COMPLETED" | "FAILED" | "CANCELLED" | "ERROR">;
1073
+ /**
1074
+ * The job is being started.
1075
+ *
1076
+ */
1077
+ readonly STARTING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "COMPLETING" | "CANCELLING" | "DELETING" | "COMPLETED" | "FAILED" | "CANCELLED" | "ERROR">;
1078
+ /**
1079
+ * The job is running.
1080
+ *
1081
+ */
1082
+ readonly RUNNING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "COMPLETING" | "CANCELLING" | "DELETING" | "COMPLETED" | "FAILED" | "CANCELLED" | "ERROR">;
1083
+ /**
1084
+ * The job is completing.
1085
+ *
1086
+ */
1087
+ readonly COMPLETING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "COMPLETING" | "CANCELLING" | "DELETING" | "COMPLETED" | "FAILED" | "CANCELLED" | "ERROR">;
1088
+ /**
1089
+ * The job is being cancelled.
1090
+ *
1091
+ */
1092
+ readonly CANCELLING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "COMPLETING" | "CANCELLING" | "DELETING" | "COMPLETED" | "FAILED" | "CANCELLED" | "ERROR">;
1093
+ /**
1094
+ * The job is being deleted.
1095
+ *
1096
+ */
1097
+ readonly DELETING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "COMPLETING" | "CANCELLING" | "DELETING" | "COMPLETED" | "FAILED" | "CANCELLED" | "ERROR">;
1098
+ /**
1099
+ * The job has successfully completed.
1100
+ *
1101
+ */
1102
+ readonly COMPLETED: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "COMPLETING" | "CANCELLING" | "DELETING" | "COMPLETED" | "FAILED" | "CANCELLED" | "ERROR">;
1103
+ /**
1104
+ * The job has failed.
1105
+ *
1106
+ */
1107
+ readonly FAILED: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "COMPLETING" | "CANCELLING" | "DELETING" | "COMPLETED" | "FAILED" | "CANCELLED" | "ERROR">;
1108
+ /**
1109
+ * The job has been cancelled.
1110
+ *
1111
+ */
1112
+ readonly CANCELLED: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "COMPLETING" | "CANCELLING" | "DELETING" | "COMPLETED" | "FAILED" | "CANCELLED" | "ERROR">;
1113
+ /**
1114
+ * The job encountered an internal error.
1115
+ *
1116
+ */
1117
+ readonly ERROR: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "COMPLETING" | "CANCELLING" | "DELETING" | "COMPLETED" | "FAILED" | "CANCELLED" | "ERROR">;
1118
+ }
1119
+ export type JobInstanceStatus_StateClass = EnumClass<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "PROVISIONING" | "STARTING" | "RUNNING" | "COMPLETING" | "CANCELLING" | "DELETING" | "COMPLETED" | "FAILED" | "CANCELLED" | "ERROR"> & JobInstanceStatus_StateValueMembers;
1120
+ export declare const JobInstanceStatus_State: JobInstanceStatus_StateClass;
1121
+ /**
1122
+ * Represents a job with a specified workload.
1123
+ *
1124
+ */
1125
+ export interface Job {
1126
+ $type: "nebius.ai.v1.Job";
1127
+ [unknownFieldsSymbol]?: Uint8Array | undefined;
1128
+ [customJson]?: () => unknown;
1129
+ metadata?: ResourceMetadata | undefined;
1130
+ spec?: JobSpec | undefined;
1131
+ status?: JobStatus | undefined;
1132
+ }
1133
+ export declare const Job: MessageFns<Job, "nebius.ai.v1.Job">;
1134
+ /**
1135
+ * JobSpec defines a job that will be run.
1136
+ *
1137
+ */
1138
+ export interface JobSpec {
1139
+ $type: "nebius.ai.v1.JobSpec";
1140
+ [unknownFieldsSymbol]?: Uint8Array | undefined;
1141
+ [customJson]?: () => unknown;
1142
+ /**
1143
+ * The Docker image to use for the job's container.
1144
+ *
1145
+ */
1146
+ image: string;
1147
+ /**
1148
+ * Specifies the environment variables for the job's container.
1149
+ *
1150
+ */
1151
+ environmentVariables: JobSpec_EnvironmentVariable[];
1152
+ /**
1153
+ * Specifies the ports that the job exposes.
1154
+ *
1155
+ */
1156
+ ports: JobSpec_Port[];
1157
+ /**
1158
+ * The entrypoint command for the job's container.
1159
+ *
1160
+ */
1161
+ containerCommand: string;
1162
+ /**
1163
+ * The arguments to pass to the entrypoint command.
1164
+ *
1165
+ */
1166
+ args: string;
1167
+ /**
1168
+ * The working directory for the job's container.
1169
+ *
1170
+ */
1171
+ workingDir: string;
1172
+ /**
1173
+ * Volumes to be mounted into the job's container.
1174
+ *
1175
+ */
1176
+ volumes: JobSpec_VolumeMount[];
1177
+ /**
1178
+ * Registry credentials for private Docker registry.
1179
+ *
1180
+ */
1181
+ registryCredentials?: JobSpec_RegistryCredentials | undefined;
1182
+ /**
1183
+ * Compute platform that the job will be run on.
1184
+ *
1185
+ */
1186
+ platform: string;
1187
+ /**
1188
+ * Compute preset that the job will be run on.
1189
+ *
1190
+ */
1191
+ preset: string;
1192
+ /**
1193
+ * Shared memory size in bytes for the job's container.
1194
+ *
1195
+ */
1196
+ shmSizeBytes: Long;
1197
+ /**
1198
+ * Disk spec for the main disk of the job.
1199
+ *
1200
+ */
1201
+ disk?: JobSpec_DiskSpec | undefined;
1202
+ /**
1203
+ * Subnet ID where the job will be deployed.
1204
+ *
1205
+ */
1206
+ subnetId: string;
1207
+ /**
1208
+ * Whether to assign a public IP to the job.
1209
+ *
1210
+ */
1211
+ publicIp: boolean;
1212
+ /**
1213
+ * Public keys to be authorized for SSH access to the job.
1214
+ *
1215
+ */
1216
+ sshAuthorizedKeys: string[];
1217
+ /**
1218
+ * Restart attempts for the job.
1219
+ *
1220
+ */
1221
+ restartAttempts: Long;
1222
+ /**
1223
+ * Job timeout.
1224
+ *
1225
+ */
1226
+ timeout?: Duration | undefined;
1227
+ }
1228
+ export declare const JobSpec: MessageFns<JobSpec, "nebius.ai.v1.JobSpec">;
1229
+ /**
1230
+ * EnvironmentVariable defines an environment variable for the endpoint's container.
1231
+ *
1232
+ */
1233
+ export interface JobSpec_EnvironmentVariable {
1234
+ $type: "nebius.ai.v1.JobSpec.EnvironmentVariable";
1235
+ [unknownFieldsSymbol]?: Uint8Array | undefined;
1236
+ [customJson]?: () => unknown;
1237
+ /**
1238
+ * The name of the environment variable.
1239
+ *
1240
+ */
1241
+ name: string;
1242
+ /**
1243
+ * Environment variable value.
1244
+ *
1245
+ */
1246
+ value: string;
1247
+ }
1248
+ export declare const JobSpec_EnvironmentVariable: MessageFns<JobSpec_EnvironmentVariable, "nebius.ai.v1.JobSpec.EnvironmentVariable">;
1249
+ export interface JobSpec_Port {
1250
+ $type: "nebius.ai.v1.JobSpec.Port";
1251
+ [unknownFieldsSymbol]?: Uint8Array | undefined;
1252
+ [customJson]?: () => unknown;
1253
+ /**
1254
+ * Container port.
1255
+ *
1256
+ */
1257
+ containerPort: number;
1258
+ /**
1259
+ * Host port.
1260
+ *
1261
+ * If not specified, will be same as container_port.
1262
+ *
1263
+ */
1264
+ hostPort: number;
1265
+ /**
1266
+ * Port's protocol.
1267
+ *
1268
+ */
1269
+ protocol: JobSpec_Port_Protocol;
1270
+ }
1271
+ export declare const JobSpec_Port: MessageFns<JobSpec_Port, "nebius.ai.v1.JobSpec.Port">;
1272
+ /**
1273
+ * VolumeMount represents a volume mount for the endpoint's container.
1274
+ *
1275
+ */
1276
+ export interface JobSpec_VolumeMount {
1277
+ $type: "nebius.ai.v1.JobSpec.VolumeMount";
1278
+ [unknownFieldsSymbol]?: Uint8Array | undefined;
1279
+ [customJson]?: () => unknown;
1280
+ /**
1281
+ * Source of the volume mount.
1282
+ *
1283
+ * Can be a name of an ID of Nebius Storage bucket or filesystem.
1284
+ *
1285
+ */
1286
+ source: string;
1287
+ /**
1288
+ * Path inside the source volume.
1289
+ *
1290
+ * Optional.
1291
+ *
1292
+ */
1293
+ sourcePath: string;
1294
+ /**
1295
+ * Path inside the endpoint's container where the volume is mounted.
1296
+ *
1297
+ * Must be an absolute path.
1298
+ *
1299
+ */
1300
+ containerPath: string;
1301
+ /**
1302
+ * Mount mode.
1303
+ *
1304
+ */
1305
+ mode: JobSpec_VolumeMount_Mode;
1306
+ }
1307
+ export declare const JobSpec_VolumeMount: MessageFns<JobSpec_VolumeMount, "nebius.ai.v1.JobSpec.VolumeMount">;
1308
+ export interface JobSpec_DiskSpec {
1309
+ $type: "nebius.ai.v1.JobSpec.DiskSpec";
1310
+ [unknownFieldsSymbol]?: Uint8Array | undefined;
1311
+ [customJson]?: () => unknown;
1312
+ /**
1313
+ * Disk type.
1314
+ *
1315
+ */
1316
+ type: DiskSpec_DiskType;
1317
+ /**
1318
+ * Disk size in bytes.
1319
+ *
1320
+ */
1321
+ sizeBytes: Long;
1322
+ }
1323
+ export declare const JobSpec_DiskSpec: MessageFns<JobSpec_DiskSpec, "nebius.ai.v1.JobSpec.DiskSpec">;
1324
+ export interface JobSpec_RegistryCredentials {
1325
+ $type: "nebius.ai.v1.JobSpec.RegistryCredentials";
1326
+ [unknownFieldsSymbol]?: Uint8Array | undefined;
1327
+ [customJson]?: () => unknown;
1328
+ /**
1329
+ * Registry username for private Docker registry.
1330
+ *
1331
+ */
1332
+ username: string;
1333
+ /**
1334
+ * Registry password for private Docker registry.
1335
+ *
1336
+ */
1337
+ password: string;
1338
+ /**
1339
+ * Secret version storing the registry credentials.
1340
+ * Must have keys "REGISTRY_USERNAME" and "REGISTRY_PASSWORD".
1341
+ *
1342
+ */
1343
+ mysteryboxSecretVersion: string;
1344
+ }
1345
+ export declare const JobSpec_RegistryCredentials: MessageFns<JobSpec_RegistryCredentials, "nebius.ai.v1.JobSpec.RegistryCredentials">;
1346
+ /**
1347
+ * JobStatus represents the status of a VM app.
1348
+ *
1349
+ */
1350
+ export interface JobStatus {
1351
+ $type: "nebius.ai.v1.JobStatus";
1352
+ [unknownFieldsSymbol]?: Uint8Array | undefined;
1353
+ [customJson]?: () => unknown;
1354
+ /**
1355
+ * Private endpoints to access the workload.
1356
+ *
1357
+ */
1358
+ privateEndpoints: string[];
1359
+ /**
1360
+ * Public endpoints to access the workload.
1361
+ *
1362
+ */
1363
+ publicEndpoints: string[];
1364
+ /**
1365
+ * Status of individual job instances.
1366
+ *
1367
+ */
1368
+ instances: JobInstanceStatus[];
1369
+ /**
1370
+ * State of the job.
1371
+ *
1372
+ */
1373
+ state: JobStatus_State;
1374
+ /**
1375
+ * Details of the job's state.
1376
+ *
1377
+ */
1378
+ stateDetails?: JobStateDetails | undefined;
1379
+ }
1380
+ export declare const JobStatus: MessageFns<JobStatus, "nebius.ai.v1.JobStatus">;
1381
+ /**
1382
+ * Job state details.
1383
+ *
1384
+ */
1385
+ export interface JobStateDetails {
1386
+ $type: "nebius.ai.v1.JobStateDetails";
1387
+ [unknownFieldsSymbol]?: Uint8Array | undefined;
1388
+ [customJson]?: () => unknown;
1389
+ /**
1390
+ * Short state description.
1391
+ *
1392
+ */
1393
+ code: string;
1394
+ /**
1395
+ * Detailed human-readable description.
1396
+ *
1397
+ */
1398
+ message: string;
1399
+ }
1400
+ export declare const JobStateDetails: MessageFns<JobStateDetails, "nebius.ai.v1.JobStateDetails">;
1401
+ /**
1402
+ * JobInstanceStatus represents the status of a job instance.
1403
+ *
1404
+ */
1405
+ export interface JobInstanceStatus {
1406
+ $type: "nebius.ai.v1.JobInstanceStatus";
1407
+ [unknownFieldsSymbol]?: Uint8Array | undefined;
1408
+ [customJson]?: () => unknown;
1409
+ /**
1410
+ * The current state of the job's workload.
1411
+ *
1412
+ */
1413
+ state: JobInstanceStatus_State;
1414
+ /**
1415
+ * ID of the compute instance running the job.
1416
+ *
1417
+ */
1418
+ computeInstanceId: string;
1419
+ /**
1420
+ * The current state of the compute instance.
1421
+ *
1422
+ */
1423
+ computeInstanceState: InstanceStatus_InstanceState;
1424
+ /**
1425
+ * Private IP address of the instance.
1426
+ *
1427
+ */
1428
+ privateIp: string;
1429
+ /**
1430
+ * Public IP address of the instance.
1431
+ *
1432
+ */
1433
+ publicIp: string;
1434
+ }
1435
+ export declare const JobInstanceStatus: MessageFns<JobInstanceStatus, "nebius.ai.v1.JobInstanceStatus">;
1436
+ export {};
1437
+ //# sourceMappingURL=index.d.ts.map