@nebius/js-sdk 0.2.48 → 0.2.50
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.
- package/dist/cjs/api/nebius/ai/v1/index.d.ts +62 -8
- package/dist/cjs/api/nebius/ai/v1/index.d.ts.map +1 -1
- package/dist/cjs/api/nebius/ai/v1/index.js +74 -2
- package/dist/cjs/api/nebius/ai/v1/index.js.map +1 -1
- package/dist/cjs/api/nebius/iam/v1/index.d.ts +3 -1
- package/dist/cjs/api/nebius/iam/v1/index.d.ts.map +1 -1
- package/dist/cjs/api/nebius/iam/v1/index.js.map +1 -1
- package/dist/cjs/api/nebius/index.d.ts +14 -9
- package/dist/cjs/api/nebius/index.d.ts.map +1 -1
- package/dist/cjs/api/nebius/index.js +6 -0
- package/dist/cjs/api/nebius/index.js.map +1 -1
- package/dist/cjs/api/nebius/msp/skypilot/v1alpha1/index.d.ts +20 -0
- package/dist/cjs/api/nebius/msp/skypilot/v1alpha1/index.d.ts.map +1 -0
- package/dist/cjs/api/nebius/msp/skypilot/v1alpha1/index.js +114 -0
- package/dist/cjs/api/nebius/msp/skypilot/v1alpha1/index.js.map +1 -0
- package/dist/cjs/api/nebius/msp/skypilot/v1alpha1.d.ts +1 -0
- package/dist/cjs/api/nebius/msp/skypilot/v1alpha1.js +2 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/api/nebius/ai/v1/index.d.ts +62 -8
- package/dist/esm/api/nebius/ai/v1/index.d.ts.map +1 -1
- package/dist/esm/api/nebius/ai/v1/index.js +72 -0
- package/dist/esm/api/nebius/ai/v1/index.js.map +1 -1
- package/dist/esm/api/nebius/iam/v1/index.d.ts +3 -1
- package/dist/esm/api/nebius/iam/v1/index.d.ts.map +1 -1
- package/dist/esm/api/nebius/iam/v1/index.js.map +1 -1
- package/dist/esm/api/nebius/index.d.ts +14 -9
- package/dist/esm/api/nebius/index.d.ts.map +1 -1
- package/dist/esm/api/nebius/index.js +6 -0
- package/dist/esm/api/nebius/index.js.map +1 -1
- package/dist/esm/api/nebius/msp/skypilot/v1alpha1/index.d.ts +20 -0
- package/dist/esm/api/nebius/msp/skypilot/v1alpha1/index.d.ts.map +1 -0
- package/dist/esm/api/nebius/msp/skypilot/v1alpha1/index.js +111 -0
- package/dist/esm/api/nebius/msp/skypilot/v1alpha1/index.js.map +1 -0
- package/dist/esm/api/nebius/msp/skypilot/v1alpha1.d.ts +1 -0
- package/dist/esm/api/nebius/msp/skypilot/v1alpha1.js +1 -0
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +1 -1
|
@@ -9,9 +9,22 @@ import { Operation as OperationWrapper } from "../../../../runtime/operation.js"
|
|
|
9
9
|
import { Operation, OperationService, ResourceMetadata, ServiceError } from "../../common/v1/index.js";
|
|
10
10
|
import { DiskSpec_DiskType, InstanceStatus_InstanceState } from "../../compute/v1/index.js";
|
|
11
11
|
const __deprecatedWarned = new Set();
|
|
12
|
+
/** Converts and creates {@link GetEndpointRequest_View} values. */
|
|
13
|
+
export const GetEndpointRequest_View = createEnum("nebius.ai.v1.GetEndpointRequest.View", {
|
|
14
|
+
/**
|
|
15
|
+
* Represents the `VIEW_UNSPECIFIED` protobuf enum value.
|
|
16
|
+
*/
|
|
17
|
+
VIEW_UNSPECIFIED: 0,
|
|
18
|
+
/**
|
|
19
|
+
* Represents the `SECRET` protobuf enum value.
|
|
20
|
+
*/
|
|
21
|
+
SECRET: 1,
|
|
22
|
+
});
|
|
23
|
+
protoRegistry.registerEnum(GetEndpointRequest_View);
|
|
12
24
|
const GetEndpointRequest_MESSAGE_DESCRIPTOR = {
|
|
13
25
|
fields: {
|
|
14
26
|
"id": { pbName: "id", scalarType: 9 },
|
|
27
|
+
"view": { pbName: "view", scalarType: 14 },
|
|
15
28
|
},
|
|
16
29
|
};
|
|
17
30
|
/** Encodes, decodes, converts, and creates {@link GetEndpointRequest} messages. */
|
|
@@ -22,6 +35,9 @@ export const GetEndpointRequest = {
|
|
|
22
35
|
if (message.id !== "") {
|
|
23
36
|
writer.uint32(10).string(message.id);
|
|
24
37
|
}
|
|
38
|
+
if ((message.view ?? GetEndpointRequest_View.VIEW_UNSPECIFIED) !== GetEndpointRequest_View.VIEW_UNSPECIFIED) {
|
|
39
|
+
GetEndpointRequest_View.encodeField(writer, 101, message.view);
|
|
40
|
+
}
|
|
25
41
|
if (message[unknownFieldsSymbol]) {
|
|
26
42
|
writer.raw(message[unknownFieldsSymbol]);
|
|
27
43
|
}
|
|
@@ -41,6 +57,12 @@ export const GetEndpointRequest = {
|
|
|
41
57
|
message.id = reader.string();
|
|
42
58
|
continue;
|
|
43
59
|
}
|
|
60
|
+
case 101: {
|
|
61
|
+
if (tag !== 808)
|
|
62
|
+
break;
|
|
63
|
+
message.view = GetEndpointRequest_View.fromNumber(reader.int32());
|
|
64
|
+
continue;
|
|
65
|
+
}
|
|
44
66
|
default:
|
|
45
67
|
break;
|
|
46
68
|
}
|
|
@@ -65,6 +87,9 @@ export const GetEndpointRequest = {
|
|
|
65
87
|
id: isSet(object.id ?? object.id)
|
|
66
88
|
? String(object.id ?? object.id)
|
|
67
89
|
: "",
|
|
90
|
+
view: isSet(object.view ?? object.view)
|
|
91
|
+
? GetEndpointRequest_View.fromJSON(object.view ?? object.view)
|
|
92
|
+
: GetEndpointRequest_View.VIEW_UNSPECIFIED,
|
|
68
93
|
});
|
|
69
94
|
},
|
|
70
95
|
toJSON(message, use = "json") {
|
|
@@ -73,6 +98,9 @@ export const GetEndpointRequest = {
|
|
|
73
98
|
if (message.id !== "") {
|
|
74
99
|
obj[pick("id", "id")] = message.id;
|
|
75
100
|
}
|
|
101
|
+
if ((message.view ?? GetEndpointRequest_View.VIEW_UNSPECIFIED) !== GetEndpointRequest_View.VIEW_UNSPECIFIED) {
|
|
102
|
+
obj[pick("view", "view")] = GetEndpointRequest_View.toJSON(message.view);
|
|
103
|
+
}
|
|
76
104
|
return obj;
|
|
77
105
|
},
|
|
78
106
|
create(base) {
|
|
@@ -83,6 +111,9 @@ export const GetEndpointRequest = {
|
|
|
83
111
|
message.id = (object.id !== undefined && object.id !== null)
|
|
84
112
|
? object.id
|
|
85
113
|
: "";
|
|
114
|
+
message.view = (object.view !== undefined && object.view !== null)
|
|
115
|
+
? GetEndpointRequest_View.fromJSON(object.view.name)
|
|
116
|
+
: GetEndpointRequest_View.VIEW_UNSPECIFIED;
|
|
86
117
|
return message;
|
|
87
118
|
},
|
|
88
119
|
};
|
|
@@ -91,6 +122,8 @@ function GetEndpointRequestCustomInspect() {
|
|
|
91
122
|
const parts = [];
|
|
92
123
|
if (this.id !== "")
|
|
93
124
|
parts.push("id" + "=" + inspect(this.id));
|
|
125
|
+
if (this.view !== undefined)
|
|
126
|
+
parts.push("view" + "=" + inspect(this.view));
|
|
94
127
|
return `${this.$type}(${parts.join(", ")})`;
|
|
95
128
|
}
|
|
96
129
|
function GetEndpointRequestCustomJson() {
|
|
@@ -99,6 +132,8 @@ function GetEndpointRequestCustomJson() {
|
|
|
99
132
|
};
|
|
100
133
|
if (this.id !== "")
|
|
101
134
|
obj.id = inspectJson(this.id);
|
|
135
|
+
if (this.view !== undefined)
|
|
136
|
+
obj.view = inspectJson(this.view);
|
|
102
137
|
return obj;
|
|
103
138
|
}
|
|
104
139
|
function applyGetEndpointRequestCustom(message) {
|
|
@@ -110,6 +145,7 @@ function createBaseGetEndpointRequest() {
|
|
|
110
145
|
const message = {
|
|
111
146
|
$type: "nebius.ai.v1.GetEndpointRequest",
|
|
112
147
|
id: "",
|
|
148
|
+
view: GetEndpointRequest_View.VIEW_UNSPECIFIED,
|
|
113
149
|
};
|
|
114
150
|
return applyGetEndpointRequestCustom(message);
|
|
115
151
|
}
|
|
@@ -4326,9 +4362,22 @@ function createBaseEndpointInstanceStatus() {
|
|
|
4326
4362
|
};
|
|
4327
4363
|
return applyEndpointInstanceStatusCustom(message);
|
|
4328
4364
|
}
|
|
4365
|
+
/** Converts and creates {@link GetJobRequest_View} values. */
|
|
4366
|
+
export const GetJobRequest_View = createEnum("nebius.ai.v1.GetJobRequest.View", {
|
|
4367
|
+
/**
|
|
4368
|
+
* Represents the `VIEW_UNSPECIFIED` protobuf enum value.
|
|
4369
|
+
*/
|
|
4370
|
+
VIEW_UNSPECIFIED: 0,
|
|
4371
|
+
/**
|
|
4372
|
+
* Represents the `SECRET` protobuf enum value.
|
|
4373
|
+
*/
|
|
4374
|
+
SECRET: 1,
|
|
4375
|
+
});
|
|
4376
|
+
protoRegistry.registerEnum(GetJobRequest_View);
|
|
4329
4377
|
const GetJobRequest_MESSAGE_DESCRIPTOR = {
|
|
4330
4378
|
fields: {
|
|
4331
4379
|
"id": { pbName: "id", scalarType: 9 },
|
|
4380
|
+
"view": { pbName: "view", scalarType: 14 },
|
|
4332
4381
|
},
|
|
4333
4382
|
};
|
|
4334
4383
|
/** Encodes, decodes, converts, and creates {@link GetJobRequest} messages. */
|
|
@@ -4339,6 +4388,9 @@ export const GetJobRequest = {
|
|
|
4339
4388
|
if (message.id !== "") {
|
|
4340
4389
|
writer.uint32(10).string(message.id);
|
|
4341
4390
|
}
|
|
4391
|
+
if ((message.view ?? GetJobRequest_View.VIEW_UNSPECIFIED) !== GetJobRequest_View.VIEW_UNSPECIFIED) {
|
|
4392
|
+
GetJobRequest_View.encodeField(writer, 101, message.view);
|
|
4393
|
+
}
|
|
4342
4394
|
if (message[unknownFieldsSymbol]) {
|
|
4343
4395
|
writer.raw(message[unknownFieldsSymbol]);
|
|
4344
4396
|
}
|
|
@@ -4358,6 +4410,12 @@ export const GetJobRequest = {
|
|
|
4358
4410
|
message.id = reader.string();
|
|
4359
4411
|
continue;
|
|
4360
4412
|
}
|
|
4413
|
+
case 101: {
|
|
4414
|
+
if (tag !== 808)
|
|
4415
|
+
break;
|
|
4416
|
+
message.view = GetJobRequest_View.fromNumber(reader.int32());
|
|
4417
|
+
continue;
|
|
4418
|
+
}
|
|
4361
4419
|
default:
|
|
4362
4420
|
break;
|
|
4363
4421
|
}
|
|
@@ -4382,6 +4440,9 @@ export const GetJobRequest = {
|
|
|
4382
4440
|
id: isSet(object.id ?? object.id)
|
|
4383
4441
|
? String(object.id ?? object.id)
|
|
4384
4442
|
: "",
|
|
4443
|
+
view: isSet(object.view ?? object.view)
|
|
4444
|
+
? GetJobRequest_View.fromJSON(object.view ?? object.view)
|
|
4445
|
+
: GetJobRequest_View.VIEW_UNSPECIFIED,
|
|
4385
4446
|
});
|
|
4386
4447
|
},
|
|
4387
4448
|
toJSON(message, use = "json") {
|
|
@@ -4390,6 +4451,9 @@ export const GetJobRequest = {
|
|
|
4390
4451
|
if (message.id !== "") {
|
|
4391
4452
|
obj[pick("id", "id")] = message.id;
|
|
4392
4453
|
}
|
|
4454
|
+
if ((message.view ?? GetJobRequest_View.VIEW_UNSPECIFIED) !== GetJobRequest_View.VIEW_UNSPECIFIED) {
|
|
4455
|
+
obj[pick("view", "view")] = GetJobRequest_View.toJSON(message.view);
|
|
4456
|
+
}
|
|
4393
4457
|
return obj;
|
|
4394
4458
|
},
|
|
4395
4459
|
create(base) {
|
|
@@ -4400,6 +4464,9 @@ export const GetJobRequest = {
|
|
|
4400
4464
|
message.id = (object.id !== undefined && object.id !== null)
|
|
4401
4465
|
? object.id
|
|
4402
4466
|
: "";
|
|
4467
|
+
message.view = (object.view !== undefined && object.view !== null)
|
|
4468
|
+
? GetJobRequest_View.fromJSON(object.view.name)
|
|
4469
|
+
: GetJobRequest_View.VIEW_UNSPECIFIED;
|
|
4403
4470
|
return message;
|
|
4404
4471
|
},
|
|
4405
4472
|
};
|
|
@@ -4408,6 +4475,8 @@ function GetJobRequestCustomInspect() {
|
|
|
4408
4475
|
const parts = [];
|
|
4409
4476
|
if (this.id !== "")
|
|
4410
4477
|
parts.push("id" + "=" + inspect(this.id));
|
|
4478
|
+
if (this.view !== undefined)
|
|
4479
|
+
parts.push("view" + "=" + inspect(this.view));
|
|
4411
4480
|
return `${this.$type}(${parts.join(", ")})`;
|
|
4412
4481
|
}
|
|
4413
4482
|
function GetJobRequestCustomJson() {
|
|
@@ -4416,6 +4485,8 @@ function GetJobRequestCustomJson() {
|
|
|
4416
4485
|
};
|
|
4417
4486
|
if (this.id !== "")
|
|
4418
4487
|
obj.id = inspectJson(this.id);
|
|
4488
|
+
if (this.view !== undefined)
|
|
4489
|
+
obj.view = inspectJson(this.view);
|
|
4419
4490
|
return obj;
|
|
4420
4491
|
}
|
|
4421
4492
|
function applyGetJobRequestCustom(message) {
|
|
@@ -4427,6 +4498,7 @@ function createBaseGetJobRequest() {
|
|
|
4427
4498
|
const message = {
|
|
4428
4499
|
$type: "nebius.ai.v1.GetJobRequest",
|
|
4429
4500
|
id: "",
|
|
4501
|
+
view: GetJobRequest_View.VIEW_UNSPECIFIED,
|
|
4430
4502
|
};
|
|
4431
4503
|
return applyGetJobRequestCustom(message);
|
|
4432
4504
|
}
|