@scaleway/sdk 2.69.0 → 2.70.0
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/api/account/v3/api.gen.cjs +23 -0
- package/dist/api/account/v3/api.gen.d.ts +11 -1
- package/dist/api/account/v3/api.gen.js +24 -1
- package/dist/api/account/v3/index.gen.d.ts +1 -1
- package/dist/api/account/v3/marshalling.gen.cjs +171 -0
- package/dist/api/account/v3/marshalling.gen.d.ts +3 -1
- package/dist/api/account/v3/marshalling.gen.js +173 -2
- package/dist/api/account/v3/types.gen.d.ts +93 -0
- package/dist/api/applesilicon/v1alpha1/types.gen.d.ts +3 -2
- package/dist/api/cockpit/v1/marshalling.gen.cjs +4 -4
- package/dist/api/cockpit/v1/marshalling.gen.js +4 -4
- package/dist/api/cockpit/v1/types.gen.d.ts +3 -3
- package/dist/api/iam/v1alpha1/api.gen.cjs +1 -0
- package/dist/api/iam/v1alpha1/api.gen.js +1 -0
- package/dist/api/iam/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/iam/v1alpha1/marshalling.gen.cjs +9 -14
- package/dist/api/iam/v1alpha1/marshalling.gen.js +9 -14
- package/dist/api/iam/v1alpha1/types.gen.d.ts +8 -6
- package/dist/api/iam/v1alpha1/validation-rules.gen.cjs +23 -12
- package/dist/api/iam/v1alpha1/validation-rules.gen.d.ts +22 -11
- package/dist/api/iam/v1alpha1/validation-rules.gen.js +23 -12
- package/dist/api/inference/index.gen.cjs +4 -2
- package/dist/api/inference/index.gen.d.ts +1 -0
- package/dist/api/inference/index.gen.js +4 -2
- package/dist/api/inference/v1/api.gen.cjs +274 -0
- package/dist/api/inference/v1/api.gen.d.ts +140 -0
- package/dist/api/inference/v1/api.gen.js +274 -0
- package/dist/api/inference/v1/content.gen.cjs +13 -0
- package/dist/api/inference/v1/content.gen.d.ts +5 -0
- package/dist/api/inference/v1/content.gen.js +13 -0
- package/dist/api/inference/v1/index.gen.cjs +9 -0
- package/dist/api/inference/v1/index.gen.d.ts +4 -0
- package/dist/api/inference/v1/index.gen.js +9 -0
- package/dist/api/inference/v1/marshalling.gen.cjs +260 -0
- package/dist/api/inference/v1/marshalling.gen.d.ts +14 -0
- package/dist/api/inference/v1/marshalling.gen.js +260 -0
- package/dist/api/inference/v1/types.gen.d.ts +395 -0
- package/dist/api/inference/v1/validation-rules.gen.cjs +65 -0
- package/dist/api/inference/v1/validation-rules.gen.d.ts +57 -0
- package/dist/api/inference/v1/validation-rules.gen.js +65 -0
- package/dist/api/instance/v1/index.gen.d.ts +1 -1
- package/dist/api/instance/v1/marshalling.gen.cjs +13 -0
- package/dist/api/instance/v1/marshalling.gen.js +13 -0
- package/dist/api/instance/v1/types.gen.d.ts +10 -0
- package/dist/api/tem/v1alpha1/api.gen.cjs +93 -0
- package/dist/api/tem/v1alpha1/api.gen.d.ts +44 -1
- package/dist/api/tem/v1alpha1/api.gen.js +94 -1
- package/dist/api/tem/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/tem/v1alpha1/marshalling.gen.cjs +114 -0
- package/dist/api/tem/v1alpha1/marshalling.gen.d.ts +7 -1
- package/dist/api/tem/v1alpha1/marshalling.gen.js +114 -0
- package/dist/api/tem/v1alpha1/types.gen.d.ts +157 -1
- package/dist/api/tem/v1alpha1/validation-rules.gen.cjs +10 -0
- package/dist/api/tem/v1alpha1/validation-rules.gen.d.ts +9 -0
- package/dist/api/tem/v1alpha1/validation-rules.gen.js +10 -0
- package/dist/api/webhosting/v1/index.gen.d.ts +1 -1
- package/dist/api/webhosting/v1/marshalling.gen.cjs +23 -1
- package/dist/api/webhosting/v1/marshalling.gen.js +23 -1
- package/dist/api/webhosting/v1/types.gen.d.ts +51 -12
- package/dist/scw/constants.cjs +1 -1
- package/dist/scw/constants.d.ts +2 -2
- package/dist/scw/constants.js +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,395 @@
|
|
|
1
|
+
import type { Region as ScwRegion } from '../../../bridge';
|
|
2
|
+
export type DeploymentStatus = 'unknown_status' | 'creating' | 'deploying' | 'ready' | 'error' | 'deleting' | 'locked';
|
|
3
|
+
export type ListDeploymentsRequestOrderBy = 'created_at_desc' | 'created_at_asc' | 'name_asc' | 'name_desc';
|
|
4
|
+
export type ListModelsRequestOrderBy = 'display_rank_asc' | 'created_at_asc' | 'created_at_desc' | 'name_asc' | 'name_desc';
|
|
5
|
+
export type ModelStatus = 'unknown_status' | 'preparing' | 'downloading' | 'ready' | 'error';
|
|
6
|
+
export type NodeTypeStock = 'unknown_stock' | 'low_stock' | 'out_of_stock' | 'available';
|
|
7
|
+
export interface ModelSupportedQuantization {
|
|
8
|
+
/** Number of bits for this supported quantization. */
|
|
9
|
+
quantizationBits: number;
|
|
10
|
+
/** Tells whether this quantization is allowed for this node type. */
|
|
11
|
+
allowed: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Maximum inference context size available for this node type and
|
|
14
|
+
* quantization.
|
|
15
|
+
*/
|
|
16
|
+
maxContextSize: number;
|
|
17
|
+
}
|
|
18
|
+
export interface EndpointPrivateNetworkDetails {
|
|
19
|
+
privateNetworkId: string;
|
|
20
|
+
}
|
|
21
|
+
export interface EndpointPublicNetworkDetails {
|
|
22
|
+
}
|
|
23
|
+
export interface ModelSupportedNode {
|
|
24
|
+
/** Supported node type. */
|
|
25
|
+
nodeTypeName: string;
|
|
26
|
+
/** Supported quantizations. */
|
|
27
|
+
quantizations: ModelSupportedQuantization[];
|
|
28
|
+
}
|
|
29
|
+
export interface DeploymentQuantization {
|
|
30
|
+
/** Whether to enable quantization for this deployment. */
|
|
31
|
+
enabled: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* The number of bits each model parameter should be quantized to. The
|
|
34
|
+
* quantization method is chosen based on this value.
|
|
35
|
+
*/
|
|
36
|
+
bits: number;
|
|
37
|
+
}
|
|
38
|
+
export interface Endpoint {
|
|
39
|
+
/** Unique identifier. */
|
|
40
|
+
id: string;
|
|
41
|
+
/**
|
|
42
|
+
* For private endpoints, the URL will be accessible only from the Private
|
|
43
|
+
* Network. In addition, private endpoints will expose a CA certificate that
|
|
44
|
+
* can be used to verify the server's identity. This CA certificate can be
|
|
45
|
+
* retrieved using the `GetDeploymentCertificate` API call.
|
|
46
|
+
*/
|
|
47
|
+
url: string;
|
|
48
|
+
/**
|
|
49
|
+
* Defines whether the endpoint is public.
|
|
50
|
+
*
|
|
51
|
+
* One-of ('details'): at most one of 'publicNetwork', 'privateNetwork' could
|
|
52
|
+
* be set.
|
|
53
|
+
*/
|
|
54
|
+
publicNetwork?: EndpointPublicNetworkDetails;
|
|
55
|
+
/**
|
|
56
|
+
* Details of the Private Network.
|
|
57
|
+
*
|
|
58
|
+
* One-of ('details'): at most one of 'publicNetwork', 'privateNetwork' could
|
|
59
|
+
* be set.
|
|
60
|
+
*/
|
|
61
|
+
privateNetwork?: EndpointPrivateNetworkDetails;
|
|
62
|
+
/** Defines whether the authentication is disabled. */
|
|
63
|
+
disableAuth: boolean;
|
|
64
|
+
}
|
|
65
|
+
export interface ModelSupportInfo {
|
|
66
|
+
/** List of supported node types. */
|
|
67
|
+
nodes: ModelSupportedNode[];
|
|
68
|
+
}
|
|
69
|
+
export interface EndpointSpec {
|
|
70
|
+
/**
|
|
71
|
+
* Set the endpoint as public.
|
|
72
|
+
*
|
|
73
|
+
* One-of ('details'): at most one of 'publicNetwork', 'privateNetwork' could
|
|
74
|
+
* be set.
|
|
75
|
+
*/
|
|
76
|
+
publicNetwork?: EndpointPublicNetworkDetails;
|
|
77
|
+
/**
|
|
78
|
+
* Private endpoints are only accessible from the Private Network.
|
|
79
|
+
*
|
|
80
|
+
* One-of ('details'): at most one of 'publicNetwork', 'privateNetwork' could
|
|
81
|
+
* be set.
|
|
82
|
+
*/
|
|
83
|
+
privateNetwork?: EndpointPrivateNetworkDetails;
|
|
84
|
+
/**
|
|
85
|
+
* By default, deployments are protected by IAM authentication. When setting
|
|
86
|
+
* this field to true, the authentication will be disabled.
|
|
87
|
+
*/
|
|
88
|
+
disableAuth: boolean;
|
|
89
|
+
}
|
|
90
|
+
export interface ModelSource {
|
|
91
|
+
url: string;
|
|
92
|
+
/** One-of ('credentials'): at most one of 'secret' could be set. */
|
|
93
|
+
secret?: string;
|
|
94
|
+
}
|
|
95
|
+
export interface Deployment {
|
|
96
|
+
/** Unique identifier. */
|
|
97
|
+
id: string;
|
|
98
|
+
/** Name of the deployment. */
|
|
99
|
+
name: string;
|
|
100
|
+
/** Project ID. */
|
|
101
|
+
projectId: string;
|
|
102
|
+
/** Status of the deployment. */
|
|
103
|
+
status: DeploymentStatus;
|
|
104
|
+
/** List of tags applied to the deployment. */
|
|
105
|
+
tags: string[];
|
|
106
|
+
/** Node type of the deployment. */
|
|
107
|
+
nodeTypeName: string;
|
|
108
|
+
/** List of endpoints. */
|
|
109
|
+
endpoints: Endpoint[];
|
|
110
|
+
/** Current size of the pool. */
|
|
111
|
+
size: number;
|
|
112
|
+
/** Defines the minimum size of the pool. */
|
|
113
|
+
minSize: number;
|
|
114
|
+
/** Defines the maximum size of the pool. */
|
|
115
|
+
maxSize: number;
|
|
116
|
+
/** Displays information if your deployment is in error state. */
|
|
117
|
+
errorMessage?: string;
|
|
118
|
+
/** ID of the model used for the deployment. */
|
|
119
|
+
modelId: string;
|
|
120
|
+
/** Quantization parameters for this deployment. */
|
|
121
|
+
quantization?: DeploymentQuantization;
|
|
122
|
+
/** Name of the deployed model. */
|
|
123
|
+
modelName: string;
|
|
124
|
+
/** Creation date of the deployment. */
|
|
125
|
+
createdAt?: Date;
|
|
126
|
+
/** Last modification date of the deployment. */
|
|
127
|
+
updatedAt?: Date;
|
|
128
|
+
/** Region of the deployment. */
|
|
129
|
+
region: ScwRegion;
|
|
130
|
+
}
|
|
131
|
+
export interface Model {
|
|
132
|
+
/** Unique identifier. */
|
|
133
|
+
id: string;
|
|
134
|
+
/** Unique Name identifier. */
|
|
135
|
+
name: string;
|
|
136
|
+
/** Project ID. */
|
|
137
|
+
projectId: string;
|
|
138
|
+
/** List of tags applied to the model. */
|
|
139
|
+
tags: string[];
|
|
140
|
+
/** Status of the model. */
|
|
141
|
+
status: ModelStatus;
|
|
142
|
+
/** Purpose of the model. */
|
|
143
|
+
description: string;
|
|
144
|
+
/** Displays information if your model is in error state. */
|
|
145
|
+
errorMessage?: string;
|
|
146
|
+
/** Defines whether the model has an end user license agreement. */
|
|
147
|
+
hasEula: boolean;
|
|
148
|
+
/** Creation date of the model. */
|
|
149
|
+
createdAt?: Date;
|
|
150
|
+
/** Last modification date of the model. */
|
|
151
|
+
updatedAt?: Date;
|
|
152
|
+
/** Region of the model. */
|
|
153
|
+
region: ScwRegion;
|
|
154
|
+
/** Supported nodes types with quantization options and context lengths. */
|
|
155
|
+
nodesSupport: ModelSupportInfo[];
|
|
156
|
+
/** Size, in bits, of the model parameters. */
|
|
157
|
+
parameterSizeBits: number;
|
|
158
|
+
/** Total size, in bytes, of the model files. */
|
|
159
|
+
sizeBytes: number;
|
|
160
|
+
}
|
|
161
|
+
export interface NodeType {
|
|
162
|
+
/** Name of the node type. */
|
|
163
|
+
name: string;
|
|
164
|
+
/** Current stock status for the node type. */
|
|
165
|
+
stockStatus: NodeTypeStock;
|
|
166
|
+
/** Current specs of the offer. */
|
|
167
|
+
description: string;
|
|
168
|
+
/** Number of virtual CPUs. */
|
|
169
|
+
vcpus: number;
|
|
170
|
+
/** Quantity of RAM. */
|
|
171
|
+
memory: number;
|
|
172
|
+
/** Quantity of GPU RAM. */
|
|
173
|
+
vram: number;
|
|
174
|
+
/** The node type is currently disabled. */
|
|
175
|
+
disabled: boolean;
|
|
176
|
+
/** The node type is currently in beta. */
|
|
177
|
+
beta: boolean;
|
|
178
|
+
/** Creation date of the node type. */
|
|
179
|
+
createdAt?: Date;
|
|
180
|
+
/** Last modification date of the node type. */
|
|
181
|
+
updatedAt?: Date;
|
|
182
|
+
/** Number of GPUs. */
|
|
183
|
+
gpus: number;
|
|
184
|
+
/** Region of the node type. */
|
|
185
|
+
region: ScwRegion;
|
|
186
|
+
}
|
|
187
|
+
export interface CreateDeploymentRequest {
|
|
188
|
+
/**
|
|
189
|
+
* Region to target. If none is passed will use default region from the
|
|
190
|
+
* config.
|
|
191
|
+
*/
|
|
192
|
+
region?: ScwRegion;
|
|
193
|
+
/** Name of the deployment. */
|
|
194
|
+
name?: string;
|
|
195
|
+
/** ID of the Project to create the deployment in. */
|
|
196
|
+
projectId?: string;
|
|
197
|
+
/** ID of the model to use. */
|
|
198
|
+
modelId: string;
|
|
199
|
+
/**
|
|
200
|
+
* If the model has an EULA, you must accept it before proceeding. The terms
|
|
201
|
+
* of the EULA can be retrieved using the `GetModelEula` API call.
|
|
202
|
+
*/
|
|
203
|
+
acceptEula?: boolean;
|
|
204
|
+
/** Name of the node type to use. */
|
|
205
|
+
nodeTypeName: string;
|
|
206
|
+
/** List of tags to apply to the deployment. */
|
|
207
|
+
tags?: string[];
|
|
208
|
+
/** Defines the minimum size of the pool. */
|
|
209
|
+
minSize?: number;
|
|
210
|
+
/** Defines the maximum size of the pool. */
|
|
211
|
+
maxSize?: number;
|
|
212
|
+
/** List of endpoints to create. */
|
|
213
|
+
endpoints: EndpointSpec[];
|
|
214
|
+
/** Quantization settings to apply to this deployment. */
|
|
215
|
+
quantization?: DeploymentQuantization;
|
|
216
|
+
}
|
|
217
|
+
export interface CreateEndpointRequest {
|
|
218
|
+
/**
|
|
219
|
+
* Region to target. If none is passed will use default region from the
|
|
220
|
+
* config.
|
|
221
|
+
*/
|
|
222
|
+
region?: ScwRegion;
|
|
223
|
+
/** ID of the deployment to create the endpoint for. */
|
|
224
|
+
deploymentId: string;
|
|
225
|
+
/** Specification of the endpoint. */
|
|
226
|
+
endpoint: EndpointSpec;
|
|
227
|
+
}
|
|
228
|
+
export interface CreateModelRequest {
|
|
229
|
+
/**
|
|
230
|
+
* Region to target. If none is passed will use default region from the
|
|
231
|
+
* config.
|
|
232
|
+
*/
|
|
233
|
+
region?: ScwRegion;
|
|
234
|
+
/** Name of the model. */
|
|
235
|
+
name?: string;
|
|
236
|
+
/** ID of the Project to import the model in. */
|
|
237
|
+
projectId?: string;
|
|
238
|
+
/** Where to import the model from. */
|
|
239
|
+
source: ModelSource;
|
|
240
|
+
}
|
|
241
|
+
export interface DeleteDeploymentRequest {
|
|
242
|
+
/**
|
|
243
|
+
* Region to target. If none is passed will use default region from the
|
|
244
|
+
* config.
|
|
245
|
+
*/
|
|
246
|
+
region?: ScwRegion;
|
|
247
|
+
/** ID of the deployment to delete. */
|
|
248
|
+
deploymentId: string;
|
|
249
|
+
}
|
|
250
|
+
export interface DeleteEndpointRequest {
|
|
251
|
+
/**
|
|
252
|
+
* Region to target. If none is passed will use default region from the
|
|
253
|
+
* config.
|
|
254
|
+
*/
|
|
255
|
+
region?: ScwRegion;
|
|
256
|
+
/** ID of the endpoint to delete. */
|
|
257
|
+
endpointId: string;
|
|
258
|
+
}
|
|
259
|
+
export interface DeleteModelRequest {
|
|
260
|
+
/**
|
|
261
|
+
* Region to target. If none is passed will use default region from the
|
|
262
|
+
* config.
|
|
263
|
+
*/
|
|
264
|
+
region?: ScwRegion;
|
|
265
|
+
/** ID of the model to delete. */
|
|
266
|
+
modelId: string;
|
|
267
|
+
}
|
|
268
|
+
export interface GetDeploymentCertificateRequest {
|
|
269
|
+
/**
|
|
270
|
+
* Region to target. If none is passed will use default region from the
|
|
271
|
+
* config.
|
|
272
|
+
*/
|
|
273
|
+
region?: ScwRegion;
|
|
274
|
+
deploymentId: string;
|
|
275
|
+
}
|
|
276
|
+
export interface GetDeploymentRequest {
|
|
277
|
+
/**
|
|
278
|
+
* Region to target. If none is passed will use default region from the
|
|
279
|
+
* config.
|
|
280
|
+
*/
|
|
281
|
+
region?: ScwRegion;
|
|
282
|
+
/** ID of the deployment to get. */
|
|
283
|
+
deploymentId: string;
|
|
284
|
+
}
|
|
285
|
+
export interface GetModelRequest {
|
|
286
|
+
/**
|
|
287
|
+
* Region to target. If none is passed will use default region from the
|
|
288
|
+
* config.
|
|
289
|
+
*/
|
|
290
|
+
region?: ScwRegion;
|
|
291
|
+
/** ID of the model to get. */
|
|
292
|
+
modelId: string;
|
|
293
|
+
}
|
|
294
|
+
export interface ListDeploymentsRequest {
|
|
295
|
+
/**
|
|
296
|
+
* Region to target. If none is passed will use default region from the
|
|
297
|
+
* config.
|
|
298
|
+
*/
|
|
299
|
+
region?: ScwRegion;
|
|
300
|
+
/** Page number to return. */
|
|
301
|
+
page?: number;
|
|
302
|
+
/** Maximum number of deployments to return per page. */
|
|
303
|
+
pageSize?: number;
|
|
304
|
+
/** Order in which to return results. */
|
|
305
|
+
orderBy?: ListDeploymentsRequestOrderBy;
|
|
306
|
+
/** Filter by Project ID. */
|
|
307
|
+
projectId?: string;
|
|
308
|
+
/** Filter by Organization ID. */
|
|
309
|
+
organizationId?: string;
|
|
310
|
+
/** Filter by deployment name. */
|
|
311
|
+
name?: string;
|
|
312
|
+
/** Filter by tags. */
|
|
313
|
+
tags?: string[];
|
|
314
|
+
}
|
|
315
|
+
export interface ListDeploymentsResponse {
|
|
316
|
+
/** List of deployments on the current page. */
|
|
317
|
+
deployments: Deployment[];
|
|
318
|
+
/** Total number of deployments. */
|
|
319
|
+
totalCount: number;
|
|
320
|
+
}
|
|
321
|
+
export interface ListModelsRequest {
|
|
322
|
+
/**
|
|
323
|
+
* Region to target. If none is passed will use default region from the
|
|
324
|
+
* config.
|
|
325
|
+
*/
|
|
326
|
+
region?: ScwRegion;
|
|
327
|
+
/** Order in which to return results. */
|
|
328
|
+
orderBy?: ListModelsRequestOrderBy;
|
|
329
|
+
/** Page number to return. */
|
|
330
|
+
page?: number;
|
|
331
|
+
/** Maximum number of models to return per page. */
|
|
332
|
+
pageSize?: number;
|
|
333
|
+
/** Filter by Project ID. */
|
|
334
|
+
projectId?: string;
|
|
335
|
+
/** Filter by model name. */
|
|
336
|
+
name?: string;
|
|
337
|
+
/** Filter by tags. */
|
|
338
|
+
tags?: string[];
|
|
339
|
+
}
|
|
340
|
+
export interface ListModelsResponse {
|
|
341
|
+
/** List of models on the current page. */
|
|
342
|
+
models: Model[];
|
|
343
|
+
/** Total number of models. */
|
|
344
|
+
totalCount: number;
|
|
345
|
+
}
|
|
346
|
+
export interface ListNodeTypesRequest {
|
|
347
|
+
/**
|
|
348
|
+
* Region to target. If none is passed will use default region from the
|
|
349
|
+
* config.
|
|
350
|
+
*/
|
|
351
|
+
region?: ScwRegion;
|
|
352
|
+
/** Page number to return. */
|
|
353
|
+
page?: number;
|
|
354
|
+
/** Maximum number of node types to return per page. */
|
|
355
|
+
pageSize?: number;
|
|
356
|
+
/** Include disabled node types in the response. */
|
|
357
|
+
includeDisabledTypes: boolean;
|
|
358
|
+
}
|
|
359
|
+
export interface ListNodeTypesResponse {
|
|
360
|
+
/** List of node types. */
|
|
361
|
+
nodeTypes: NodeType[];
|
|
362
|
+
/** Total number of node types. */
|
|
363
|
+
totalCount: number;
|
|
364
|
+
}
|
|
365
|
+
export interface UpdateDeploymentRequest {
|
|
366
|
+
/**
|
|
367
|
+
* Region to target. If none is passed will use default region from the
|
|
368
|
+
* config.
|
|
369
|
+
*/
|
|
370
|
+
region?: ScwRegion;
|
|
371
|
+
/** ID of the deployment to update. */
|
|
372
|
+
deploymentId: string;
|
|
373
|
+
/** Name of the deployment. */
|
|
374
|
+
name?: string;
|
|
375
|
+
/** List of tags to apply to the deployment. */
|
|
376
|
+
tags?: string[];
|
|
377
|
+
/** Defines the new minimum size of the pool. */
|
|
378
|
+
minSize?: number;
|
|
379
|
+
/** Defines the new maximum size of the pool. */
|
|
380
|
+
maxSize?: number;
|
|
381
|
+
}
|
|
382
|
+
export interface UpdateEndpointRequest {
|
|
383
|
+
/**
|
|
384
|
+
* Region to target. If none is passed will use default region from the
|
|
385
|
+
* config.
|
|
386
|
+
*/
|
|
387
|
+
region?: ScwRegion;
|
|
388
|
+
/** ID of the endpoint to update. */
|
|
389
|
+
endpointId: string;
|
|
390
|
+
/**
|
|
391
|
+
* By default, deployments are protected by IAM authentication. When setting
|
|
392
|
+
* this field to true, the authentication will be disabled.
|
|
393
|
+
*/
|
|
394
|
+
disableAuth?: boolean;
|
|
395
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const CreateDeploymentRequest = {
|
|
4
|
+
maxSize: {
|
|
5
|
+
greaterThanOrEqual: 1,
|
|
6
|
+
lessThanOrEqual: 50
|
|
7
|
+
},
|
|
8
|
+
minSize: {
|
|
9
|
+
greaterThanOrEqual: 1,
|
|
10
|
+
lessThanOrEqual: 50
|
|
11
|
+
},
|
|
12
|
+
name: {
|
|
13
|
+
maxLength: 255,
|
|
14
|
+
minLength: 1,
|
|
15
|
+
pattern: /^[A-Za-z0-9-_]+$/
|
|
16
|
+
},
|
|
17
|
+
nodeTypeName: {
|
|
18
|
+
maxLength: 64,
|
|
19
|
+
minLength: 1
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
const CreateModelRequest = {
|
|
23
|
+
name: {
|
|
24
|
+
maxLength: 255,
|
|
25
|
+
minLength: 1,
|
|
26
|
+
pattern: /^[A-Za-z0-9-_/.:]+$/
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
const DeploymentQuantization = {
|
|
30
|
+
bits: {
|
|
31
|
+
lessThanOrEqual: 32
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
const ListDeploymentsRequest = {
|
|
35
|
+
name: {
|
|
36
|
+
maxLength: 255,
|
|
37
|
+
minLength: 1
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
const ListModelsRequest = {
|
|
41
|
+
name: {
|
|
42
|
+
maxLength: 255,
|
|
43
|
+
minLength: 1
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
const UpdateDeploymentRequest = {
|
|
47
|
+
maxSize: {
|
|
48
|
+
greaterThanOrEqual: 1,
|
|
49
|
+
lessThanOrEqual: 50
|
|
50
|
+
},
|
|
51
|
+
minSize: {
|
|
52
|
+
greaterThanOrEqual: 1,
|
|
53
|
+
lessThanOrEqual: 50
|
|
54
|
+
},
|
|
55
|
+
name: {
|
|
56
|
+
maxLength: 255,
|
|
57
|
+
minLength: 1
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
exports.CreateDeploymentRequest = CreateDeploymentRequest;
|
|
61
|
+
exports.CreateModelRequest = CreateModelRequest;
|
|
62
|
+
exports.DeploymentQuantization = DeploymentQuantization;
|
|
63
|
+
exports.ListDeploymentsRequest = ListDeploymentsRequest;
|
|
64
|
+
exports.ListModelsRequest = ListModelsRequest;
|
|
65
|
+
exports.UpdateDeploymentRequest = UpdateDeploymentRequest;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export declare const CreateDeploymentRequest: {
|
|
2
|
+
maxSize: {
|
|
3
|
+
greaterThanOrEqual: number;
|
|
4
|
+
lessThanOrEqual: number;
|
|
5
|
+
};
|
|
6
|
+
minSize: {
|
|
7
|
+
greaterThanOrEqual: number;
|
|
8
|
+
lessThanOrEqual: number;
|
|
9
|
+
};
|
|
10
|
+
name: {
|
|
11
|
+
maxLength: number;
|
|
12
|
+
minLength: number;
|
|
13
|
+
pattern: RegExp;
|
|
14
|
+
};
|
|
15
|
+
nodeTypeName: {
|
|
16
|
+
maxLength: number;
|
|
17
|
+
minLength: number;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export declare const CreateModelRequest: {
|
|
21
|
+
name: {
|
|
22
|
+
maxLength: number;
|
|
23
|
+
minLength: number;
|
|
24
|
+
pattern: RegExp;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export declare const DeploymentQuantization: {
|
|
28
|
+
bits: {
|
|
29
|
+
lessThanOrEqual: number;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export declare const ListDeploymentsRequest: {
|
|
33
|
+
name: {
|
|
34
|
+
maxLength: number;
|
|
35
|
+
minLength: number;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
export declare const ListModelsRequest: {
|
|
39
|
+
name: {
|
|
40
|
+
maxLength: number;
|
|
41
|
+
minLength: number;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
export declare const UpdateDeploymentRequest: {
|
|
45
|
+
maxSize: {
|
|
46
|
+
greaterThanOrEqual: number;
|
|
47
|
+
lessThanOrEqual: number;
|
|
48
|
+
};
|
|
49
|
+
minSize: {
|
|
50
|
+
greaterThanOrEqual: number;
|
|
51
|
+
lessThanOrEqual: number;
|
|
52
|
+
};
|
|
53
|
+
name: {
|
|
54
|
+
maxLength: number;
|
|
55
|
+
minLength: number;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
const CreateDeploymentRequest = {
|
|
2
|
+
maxSize: {
|
|
3
|
+
greaterThanOrEqual: 1,
|
|
4
|
+
lessThanOrEqual: 50
|
|
5
|
+
},
|
|
6
|
+
minSize: {
|
|
7
|
+
greaterThanOrEqual: 1,
|
|
8
|
+
lessThanOrEqual: 50
|
|
9
|
+
},
|
|
10
|
+
name: {
|
|
11
|
+
maxLength: 255,
|
|
12
|
+
minLength: 1,
|
|
13
|
+
pattern: /^[A-Za-z0-9-_]+$/
|
|
14
|
+
},
|
|
15
|
+
nodeTypeName: {
|
|
16
|
+
maxLength: 64,
|
|
17
|
+
minLength: 1
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
const CreateModelRequest = {
|
|
21
|
+
name: {
|
|
22
|
+
maxLength: 255,
|
|
23
|
+
minLength: 1,
|
|
24
|
+
pattern: /^[A-Za-z0-9-_/.:]+$/
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
const DeploymentQuantization = {
|
|
28
|
+
bits: {
|
|
29
|
+
lessThanOrEqual: 32
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
const ListDeploymentsRequest = {
|
|
33
|
+
name: {
|
|
34
|
+
maxLength: 255,
|
|
35
|
+
minLength: 1
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
const ListModelsRequest = {
|
|
39
|
+
name: {
|
|
40
|
+
maxLength: 255,
|
|
41
|
+
minLength: 1
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
const UpdateDeploymentRequest = {
|
|
45
|
+
maxSize: {
|
|
46
|
+
greaterThanOrEqual: 1,
|
|
47
|
+
lessThanOrEqual: 50
|
|
48
|
+
},
|
|
49
|
+
minSize: {
|
|
50
|
+
greaterThanOrEqual: 1,
|
|
51
|
+
lessThanOrEqual: 50
|
|
52
|
+
},
|
|
53
|
+
name: {
|
|
54
|
+
maxLength: 255,
|
|
55
|
+
minLength: 1
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
export {
|
|
59
|
+
CreateDeploymentRequest,
|
|
60
|
+
CreateModelRequest,
|
|
61
|
+
DeploymentQuantization,
|
|
62
|
+
ListDeploymentsRequest,
|
|
63
|
+
ListModelsRequest,
|
|
64
|
+
UpdateDeploymentRequest
|
|
65
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { API } from './api.gen.js';
|
|
2
2
|
export * from './content.gen.js';
|
|
3
|
-
export type { ApplyBlockMigrationRequest, Arch, AttachServerVolumeRequest, AttachServerVolumeRequestVolumeType, AttachServerVolumeResponse, BootType, Bootscript, CheckBlockMigrationOrganizationQuotasRequest, CreateImageRequest, CreateImageResponse, CreateIpRequest, CreateIpResponse, CreatePlacementGroupRequest, CreatePlacementGroupResponse, CreatePrivateNICRequest, CreatePrivateNICResponse, CreateSecurityGroupRequest, CreateSecurityGroupResponse, CreateSecurityGroupRuleRequest, CreateSecurityGroupRuleResponse, CreateServerRequest, CreateServerResponse, CreateSnapshotRequest, CreateSnapshotResponse, CreateVolumeRequest, CreateVolumeResponse, Dashboard, DeleteImageRequest, DeleteIpRequest, DeletePlacementGroupRequest, DeletePrivateNICRequest, DeleteSecurityGroupRequest, DeleteSecurityGroupRuleRequest, DeleteServerRequest, DeleteServerUserDataRequest, DeleteSnapshotRequest, DeleteVolumeRequest, DetachServerVolumeRequest, DetachServerVolumeResponse, ExportSnapshotRequest, ExportSnapshotResponse, GetDashboardRequest, GetDashboardResponse, GetImageRequest, GetImageResponse, GetIpRequest, GetIpResponse, GetPlacementGroupRequest, GetPlacementGroupResponse, GetPlacementGroupServersRequest, GetPlacementGroupServersResponse, GetPrivateNICRequest, GetPrivateNICResponse, GetSecurityGroupRequest, GetSecurityGroupResponse, GetSecurityGroupRuleRequest, GetSecurityGroupRuleResponse, GetServerCompatibleTypesRequest, GetServerRequest, GetServerResponse, GetServerTypesAvailabilityRequest, GetServerTypesAvailabilityResponse, GetServerTypesAvailabilityResponseAvailability, GetSnapshotRequest, GetSnapshotResponse, GetVolumeRequest, GetVolumeResponse, Image, ImageState, Ip, IpState, IpType, ListDefaultSecurityGroupRulesRequest, ListImagesRequest, ListImagesResponse, ListIpsRequest, ListIpsResponse, ListPlacementGroupsRequest, ListPlacementGroupsResponse, ListPrivateNICsRequest, ListPrivateNICsResponse, ListSecurityGroupRulesRequest, ListSecurityGroupRulesResponse, ListSecurityGroupsRequest, ListSecurityGroupsResponse, ListServerActionsRequest, ListServerActionsResponse, ListServerUserDataRequest, ListServerUserDataResponse, ListServersRequest, ListServersRequestOrder, ListServersResponse, ListServersTypesRequest, ListServersTypesResponse, ListSnapshotsRequest, ListSnapshotsResponse, ListVolumesRequest, ListVolumesResponse, ListVolumesTypesRequest, ListVolumesTypesResponse, MigrationPlan, PlacementGroup, PlacementGroupPolicyMode, PlacementGroupPolicyType, PlacementGroupServer, PlanBlockMigrationRequest, PrivateNIC, PrivateNICState, SecurityGroup, SecurityGroupPolicy, SecurityGroupRule, SecurityGroupRuleAction, SecurityGroupRuleDirection, SecurityGroupRuleProtocol, SecurityGroupState, SecurityGroupSummary, SecurityGroupTemplate, Server, ServerAction, ServerActionRequest, ServerActionRequestVolumeBackupTemplate, ServerActionResponse, ServerCompatibleTypes, ServerIp, ServerIpIpFamily, ServerIpProvisioningMode, ServerIpState, ServerIpv6, ServerLocation, ServerMaintenance, ServerState, ServerSummary, ServerType, ServerTypeCapabilities, ServerTypeNetwork, ServerTypeNetworkInterface, ServerTypeVolumeConstraintSizes, ServerTypeVolumeConstraintsByType, ServerTypesAvailability, SetImageRequest, SetPlacementGroupRequest, SetPlacementGroupResponse, SetPlacementGroupServersRequest, SetPlacementGroupServersResponse, SetSecurityGroupRulesRequest, SetSecurityGroupRulesRequestRule, SetSecurityGroupRulesResponse, Snapshot, SnapshotBaseVolume, SnapshotState, SnapshotVolumeType, Task, TaskStatus, UpdateImageRequest, UpdateImageResponse, UpdateIpRequest, UpdateIpResponse, UpdatePlacementGroupRequest, UpdatePlacementGroupResponse, UpdatePlacementGroupServersRequest, UpdatePlacementGroupServersResponse, UpdatePrivateNICRequest, UpdateSecurityGroupRequest, UpdateSecurityGroupResponse, UpdateSecurityGroupRuleRequest, UpdateSecurityGroupRuleResponse, UpdateServerRequest, UpdateServerResponse, UpdateSnapshotRequest, UpdateSnapshotResponse, UpdateVolumeRequest, UpdateVolumeResponse, Volume, VolumeImageUpdateTemplate, VolumeServer, VolumeServerState, VolumeServerTemplate, VolumeServerVolumeType, VolumeState, VolumeSummary, VolumeTemplate, VolumeType, VolumeTypeCapabilities, VolumeTypeConstraints, VolumeVolumeType, } from './types.gen';
|
|
3
|
+
export type { ApplyBlockMigrationRequest, Arch, AttachServerVolumeRequest, AttachServerVolumeRequestVolumeType, AttachServerVolumeResponse, BootType, Bootscript, CheckBlockMigrationOrganizationQuotasRequest, CreateImageRequest, CreateImageResponse, CreateIpRequest, CreateIpResponse, CreatePlacementGroupRequest, CreatePlacementGroupResponse, CreatePrivateNICRequest, CreatePrivateNICResponse, CreateSecurityGroupRequest, CreateSecurityGroupResponse, CreateSecurityGroupRuleRequest, CreateSecurityGroupRuleResponse, CreateServerRequest, CreateServerResponse, CreateSnapshotRequest, CreateSnapshotResponse, CreateVolumeRequest, CreateVolumeResponse, Dashboard, DeleteImageRequest, DeleteIpRequest, DeletePlacementGroupRequest, DeletePrivateNICRequest, DeleteSecurityGroupRequest, DeleteSecurityGroupRuleRequest, DeleteServerRequest, DeleteServerUserDataRequest, DeleteSnapshotRequest, DeleteVolumeRequest, DetachServerVolumeRequest, DetachServerVolumeResponse, ExportSnapshotRequest, ExportSnapshotResponse, GetDashboardRequest, GetDashboardResponse, GetImageRequest, GetImageResponse, GetIpRequest, GetIpResponse, GetPlacementGroupRequest, GetPlacementGroupResponse, GetPlacementGroupServersRequest, GetPlacementGroupServersResponse, GetPrivateNICRequest, GetPrivateNICResponse, GetSecurityGroupRequest, GetSecurityGroupResponse, GetSecurityGroupRuleRequest, GetSecurityGroupRuleResponse, GetServerCompatibleTypesRequest, GetServerRequest, GetServerResponse, GetServerTypesAvailabilityRequest, GetServerTypesAvailabilityResponse, GetServerTypesAvailabilityResponseAvailability, GetSnapshotRequest, GetSnapshotResponse, GetVolumeRequest, GetVolumeResponse, Image, ImageState, Ip, IpState, IpType, ListDefaultSecurityGroupRulesRequest, ListImagesRequest, ListImagesResponse, ListIpsRequest, ListIpsResponse, ListPlacementGroupsRequest, ListPlacementGroupsResponse, ListPrivateNICsRequest, ListPrivateNICsResponse, ListSecurityGroupRulesRequest, ListSecurityGroupRulesResponse, ListSecurityGroupsRequest, ListSecurityGroupsResponse, ListServerActionsRequest, ListServerActionsResponse, ListServerUserDataRequest, ListServerUserDataResponse, ListServersRequest, ListServersRequestOrder, ListServersResponse, ListServersTypesRequest, ListServersTypesResponse, ListSnapshotsRequest, ListSnapshotsResponse, ListVolumesRequest, ListVolumesResponse, ListVolumesTypesRequest, ListVolumesTypesResponse, MigrationPlan, PlacementGroup, PlacementGroupPolicyMode, PlacementGroupPolicyType, PlacementGroupServer, PlanBlockMigrationRequest, PrivateNIC, PrivateNICState, SecurityGroup, SecurityGroupPolicy, SecurityGroupRule, SecurityGroupRuleAction, SecurityGroupRuleDirection, SecurityGroupRuleProtocol, SecurityGroupState, SecurityGroupSummary, SecurityGroupTemplate, Server, ServerAction, ServerActionRequest, ServerActionRequestVolumeBackupTemplate, ServerActionResponse, ServerCompatibleTypes, ServerIp, ServerIpIpFamily, ServerIpProvisioningMode, ServerIpState, ServerIpv6, ServerLocation, ServerMaintenance, ServerState, ServerSummary, ServerType, ServerTypeCapabilities, ServerTypeGPUInfo, ServerTypeNetwork, ServerTypeNetworkInterface, ServerTypeVolumeConstraintSizes, ServerTypeVolumeConstraintsByType, ServerTypesAvailability, SetImageRequest, SetPlacementGroupRequest, SetPlacementGroupResponse, SetPlacementGroupServersRequest, SetPlacementGroupServersResponse, SetSecurityGroupRulesRequest, SetSecurityGroupRulesRequestRule, SetSecurityGroupRulesResponse, Snapshot, SnapshotBaseVolume, SnapshotState, SnapshotVolumeType, Task, TaskStatus, UpdateImageRequest, UpdateImageResponse, UpdateIpRequest, UpdateIpResponse, UpdatePlacementGroupRequest, UpdatePlacementGroupResponse, UpdatePlacementGroupServersRequest, UpdatePlacementGroupServersResponse, UpdatePrivateNICRequest, UpdateSecurityGroupRequest, UpdateSecurityGroupResponse, UpdateSecurityGroupRuleRequest, UpdateSecurityGroupRuleResponse, UpdateServerRequest, UpdateServerResponse, UpdateSnapshotRequest, UpdateSnapshotResponse, UpdateVolumeRequest, UpdateVolumeResponse, Volume, VolumeImageUpdateTemplate, VolumeServer, VolumeServerState, VolumeServerTemplate, VolumeServerVolumeType, VolumeState, VolumeSummary, VolumeTemplate, VolumeType, VolumeTypeCapabilities, VolumeTypeConstraints, VolumeVolumeType, } from './types.gen';
|
|
4
4
|
export * as ValidationRules from './validation-rules.gen';
|
|
@@ -809,6 +809,18 @@ const unmarshalServerTypeCapabilities = (data) => {
|
|
|
809
809
|
bootTypes: data.boot_types
|
|
810
810
|
};
|
|
811
811
|
};
|
|
812
|
+
const unmarshalServerTypeGPUInfo = (data) => {
|
|
813
|
+
if (!json.isJSONObject(data)) {
|
|
814
|
+
throw new TypeError(
|
|
815
|
+
`Unmarshalling the type 'ServerTypeGPUInfo' failed as data isn't a dictionary.`
|
|
816
|
+
);
|
|
817
|
+
}
|
|
818
|
+
return {
|
|
819
|
+
gpuManufacturer: data.gpu_manufacturer,
|
|
820
|
+
gpuMemory: data.gpu_memory,
|
|
821
|
+
gpuName: data.gpu_name
|
|
822
|
+
};
|
|
823
|
+
};
|
|
812
824
|
const unmarshalServerTypeNetwork = (data) => {
|
|
813
825
|
if (!json.isJSONObject(data)) {
|
|
814
826
|
throw new TypeError(
|
|
@@ -849,6 +861,7 @@ const unmarshalServerType = (data) => {
|
|
|
849
861
|
capabilities: data.capabilities ? unmarshalServerTypeCapabilities(data.capabilities) : void 0,
|
|
850
862
|
endOfService: data.end_of_service,
|
|
851
863
|
gpu: data.gpu,
|
|
864
|
+
gpuInfo: data.gpu_info ? unmarshalServerTypeGPUInfo(data.gpu_info) : void 0,
|
|
852
865
|
hourlyPrice: data.hourly_price,
|
|
853
866
|
monthlyPrice: data.monthly_price,
|
|
854
867
|
ncpus: data.ncpus,
|
|
@@ -807,6 +807,18 @@ const unmarshalServerTypeCapabilities = (data) => {
|
|
|
807
807
|
bootTypes: data.boot_types
|
|
808
808
|
};
|
|
809
809
|
};
|
|
810
|
+
const unmarshalServerTypeGPUInfo = (data) => {
|
|
811
|
+
if (!isJSONObject(data)) {
|
|
812
|
+
throw new TypeError(
|
|
813
|
+
`Unmarshalling the type 'ServerTypeGPUInfo' failed as data isn't a dictionary.`
|
|
814
|
+
);
|
|
815
|
+
}
|
|
816
|
+
return {
|
|
817
|
+
gpuManufacturer: data.gpu_manufacturer,
|
|
818
|
+
gpuMemory: data.gpu_memory,
|
|
819
|
+
gpuName: data.gpu_name
|
|
820
|
+
};
|
|
821
|
+
};
|
|
810
822
|
const unmarshalServerTypeNetwork = (data) => {
|
|
811
823
|
if (!isJSONObject(data)) {
|
|
812
824
|
throw new TypeError(
|
|
@@ -847,6 +859,7 @@ const unmarshalServerType = (data) => {
|
|
|
847
859
|
capabilities: data.capabilities ? unmarshalServerTypeCapabilities(data.capabilities) : void 0,
|
|
848
860
|
endOfService: data.end_of_service,
|
|
849
861
|
gpu: data.gpu,
|
|
862
|
+
gpuInfo: data.gpu_info ? unmarshalServerTypeGPUInfo(data.gpu_info) : void 0,
|
|
850
863
|
hourlyPrice: data.hourly_price,
|
|
851
864
|
monthlyPrice: data.monthly_price,
|
|
852
865
|
ncpus: data.ncpus,
|
|
@@ -228,6 +228,14 @@ export interface ServerTypeCapabilities {
|
|
|
228
228
|
/** List of supported boot types. */
|
|
229
229
|
bootTypes: BootType[];
|
|
230
230
|
}
|
|
231
|
+
export interface ServerTypeGPUInfo {
|
|
232
|
+
/** GPU manufacturer. */
|
|
233
|
+
gpuManufacturer: string;
|
|
234
|
+
/** GPU model name. */
|
|
235
|
+
gpuName: string;
|
|
236
|
+
/** RAM of a single GPU, in bytes. */
|
|
237
|
+
gpuMemory: number;
|
|
238
|
+
}
|
|
231
239
|
export interface ServerTypeNetwork {
|
|
232
240
|
/** List of available network interfaces. */
|
|
233
241
|
interfaces: ServerTypeNetworkInterface[];
|
|
@@ -545,6 +553,8 @@ export interface ServerType {
|
|
|
545
553
|
gpu?: number;
|
|
546
554
|
/** Available RAM in bytes. */
|
|
547
555
|
ram: number;
|
|
556
|
+
/** GPU information. */
|
|
557
|
+
gpuInfo?: ServerTypeGPUInfo;
|
|
548
558
|
/** CPU architecture. */
|
|
549
559
|
arch: Arch;
|
|
550
560
|
/** True if it is a baremetal Instance. */
|