@scaleway/sdk 2.69.0 → 2.71.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.
Files changed (131) hide show
  1. package/dist/api/account/v3/api.gen.cjs +23 -0
  2. package/dist/api/account/v3/api.gen.d.ts +11 -1
  3. package/dist/api/account/v3/api.gen.js +24 -1
  4. package/dist/api/account/v3/index.gen.d.ts +1 -1
  5. package/dist/api/account/v3/marshalling.gen.cjs +171 -0
  6. package/dist/api/account/v3/marshalling.gen.d.ts +3 -1
  7. package/dist/api/account/v3/marshalling.gen.js +173 -2
  8. package/dist/api/account/v3/types.gen.d.ts +93 -0
  9. package/dist/api/applesilicon/v1alpha1/api.gen.cjs +3 -1
  10. package/dist/api/applesilicon/v1alpha1/api.gen.js +3 -1
  11. package/dist/api/applesilicon/v1alpha1/types.gen.d.ts +3 -2
  12. package/dist/api/baremetal/v1/api.gen.cjs +3 -1
  13. package/dist/api/baremetal/v1/api.gen.js +3 -1
  14. package/dist/api/baremetal/v1/marshalling.gen.cjs +4 -2
  15. package/dist/api/baremetal/v1/marshalling.gen.js +4 -2
  16. package/dist/api/baremetal/v1/types.gen.d.ts +65 -64
  17. package/dist/api/block/v1/api.gen.cjs +6 -2
  18. package/dist/api/block/v1/api.gen.js +6 -2
  19. package/dist/api/block/v1alpha1/api.gen.cjs +6 -2
  20. package/dist/api/block/v1alpha1/api.gen.js +6 -2
  21. package/dist/api/block/v1alpha1/marshalling.gen.cjs +0 -1
  22. package/dist/api/block/v1alpha1/marshalling.gen.d.ts +1 -2
  23. package/dist/api/block/v1alpha1/marshalling.gen.js +0 -1
  24. package/dist/api/cockpit/v1/marshalling.gen.cjs +4 -4
  25. package/dist/api/cockpit/v1/marshalling.gen.js +4 -4
  26. package/dist/api/cockpit/v1/types.gen.d.ts +3 -3
  27. package/dist/api/container/v1beta1/api.gen.cjs +18 -6
  28. package/dist/api/container/v1beta1/api.gen.js +18 -6
  29. package/dist/api/dedibox/v1/api.gen.cjs +9 -3
  30. package/dist/api/dedibox/v1/api.gen.js +9 -3
  31. package/dist/api/domain/v2beta1/api.gen.cjs +3 -1
  32. package/dist/api/domain/v2beta1/api.gen.js +3 -1
  33. package/dist/api/edge_services/v1beta1/api.gen.cjs +6 -2
  34. package/dist/api/edge_services/v1beta1/api.gen.js +6 -2
  35. package/dist/api/edge_services/v1beta1/types.gen.d.ts +1 -1
  36. package/dist/api/function/v1beta1/api.gen.cjs +18 -6
  37. package/dist/api/function/v1beta1/api.gen.js +18 -6
  38. package/dist/api/function/v1beta1/types.gen.d.ts +1 -1
  39. package/dist/api/iam/v1alpha1/api.gen.cjs +1 -0
  40. package/dist/api/iam/v1alpha1/api.gen.js +1 -0
  41. package/dist/api/iam/v1alpha1/index.gen.d.ts +1 -1
  42. package/dist/api/iam/v1alpha1/marshalling.gen.cjs +21 -14
  43. package/dist/api/iam/v1alpha1/marshalling.gen.js +21 -14
  44. package/dist/api/iam/v1alpha1/types.gen.d.ts +32 -6
  45. package/dist/api/iam/v1alpha1/validation-rules.gen.cjs +38 -12
  46. package/dist/api/iam/v1alpha1/validation-rules.gen.d.ts +36 -11
  47. package/dist/api/iam/v1alpha1/validation-rules.gen.js +38 -12
  48. package/dist/api/inference/index.gen.cjs +4 -2
  49. package/dist/api/inference/index.gen.d.ts +1 -0
  50. package/dist/api/inference/index.gen.js +4 -2
  51. package/dist/api/inference/v1/api.gen.cjs +278 -0
  52. package/dist/api/inference/v1/api.gen.d.ts +140 -0
  53. package/dist/api/inference/v1/api.gen.js +278 -0
  54. package/dist/api/inference/v1/content.gen.cjs +13 -0
  55. package/dist/api/inference/v1/content.gen.d.ts +5 -0
  56. package/dist/api/inference/v1/content.gen.js +13 -0
  57. package/dist/api/inference/v1/index.gen.cjs +9 -0
  58. package/dist/api/inference/v1/index.gen.d.ts +4 -0
  59. package/dist/api/inference/v1/index.gen.js +9 -0
  60. package/dist/api/inference/v1/marshalling.gen.cjs +260 -0
  61. package/dist/api/inference/v1/marshalling.gen.d.ts +14 -0
  62. package/dist/api/inference/v1/marshalling.gen.js +260 -0
  63. package/dist/api/inference/v1/types.gen.d.ts +397 -0
  64. package/dist/api/inference/v1/validation-rules.gen.cjs +65 -0
  65. package/dist/api/inference/v1/validation-rules.gen.d.ts +57 -0
  66. package/dist/api/inference/v1/validation-rules.gen.js +65 -0
  67. package/dist/api/inference/v1beta1/api.gen.cjs +3 -1
  68. package/dist/api/inference/v1beta1/api.gen.js +3 -1
  69. package/dist/api/instance/v1/index.gen.d.ts +1 -1
  70. package/dist/api/instance/v1/marshalling.gen.cjs +13 -1
  71. package/dist/api/instance/v1/marshalling.gen.js +13 -1
  72. package/dist/api/instance/v1/types.gen.d.ts +10 -2
  73. package/dist/api/k8s/v1/api.gen.cjs +3 -1
  74. package/dist/api/k8s/v1/api.gen.js +3 -1
  75. package/dist/api/k8s/v1/marshalling.gen.cjs +1 -0
  76. package/dist/api/k8s/v1/marshalling.gen.js +1 -0
  77. package/dist/api/k8s/v1/types.gen.d.ts +5 -0
  78. package/dist/api/lb/v1/types.gen.d.ts +3 -3
  79. package/dist/api/mongodb/v1alpha1/api.gen.cjs +6 -2
  80. package/dist/api/mongodb/v1alpha1/api.gen.js +6 -2
  81. package/dist/api/qaas/v1alpha1/api.gen.cjs +6 -2
  82. package/dist/api/qaas/v1alpha1/api.gen.js +6 -2
  83. package/dist/api/rdb/v1/api.gen.cjs +6 -2
  84. package/dist/api/rdb/v1/api.gen.js +6 -2
  85. package/dist/api/redis/v1/api.gen.cjs +3 -1
  86. package/dist/api/redis/v1/api.gen.js +3 -1
  87. package/dist/api/registry/v1/api.gen.cjs +9 -3
  88. package/dist/api/registry/v1/api.gen.js +9 -3
  89. package/dist/api/secret/v1beta1/api.gen.cjs +32 -0
  90. package/dist/api/secret/v1beta1/api.gen.d.ts +17 -1
  91. package/dist/api/secret/v1beta1/api.gen.js +32 -0
  92. package/dist/api/secret/v1beta1/index.gen.d.ts +1 -1
  93. package/dist/api/secret/v1beta1/types.gen.d.ts +17 -0
  94. package/dist/api/serverless_sqldb/v1alpha1/api.gen.cjs +3 -1
  95. package/dist/api/serverless_sqldb/v1alpha1/api.gen.js +3 -1
  96. package/dist/api/tem/v1alpha1/api.gen.cjs +93 -0
  97. package/dist/api/tem/v1alpha1/api.gen.d.ts +44 -1
  98. package/dist/api/tem/v1alpha1/api.gen.js +94 -1
  99. package/dist/api/tem/v1alpha1/index.gen.d.ts +1 -1
  100. package/dist/api/tem/v1alpha1/marshalling.gen.cjs +114 -0
  101. package/dist/api/tem/v1alpha1/marshalling.gen.d.ts +7 -1
  102. package/dist/api/tem/v1alpha1/marshalling.gen.js +114 -0
  103. package/dist/api/tem/v1alpha1/types.gen.d.ts +157 -1
  104. package/dist/api/tem/v1alpha1/validation-rules.gen.cjs +10 -0
  105. package/dist/api/tem/v1alpha1/validation-rules.gen.d.ts +9 -0
  106. package/dist/api/tem/v1alpha1/validation-rules.gen.js +10 -0
  107. package/dist/api/vpc/v2/api.gen.cjs +33 -0
  108. package/dist/api/vpc/v2/api.gen.d.ts +17 -1
  109. package/dist/api/vpc/v2/api.gen.js +34 -1
  110. package/dist/api/vpc/v2/index.gen.d.ts +1 -1
  111. package/dist/api/vpc/v2/marshalling.gen.cjs +59 -0
  112. package/dist/api/vpc/v2/marshalling.gen.d.ts +4 -1
  113. package/dist/api/vpc/v2/marshalling.gen.js +59 -0
  114. package/dist/api/vpc/v2/types.gen.d.ts +80 -0
  115. package/dist/api/vpc/v2/validation-rules.gen.cjs +18 -0
  116. package/dist/api/vpc/v2/validation-rules.gen.d.ts +17 -0
  117. package/dist/api/vpc/v2/validation-rules.gen.js +18 -0
  118. package/dist/api/vpcgw/v1/api.gen.cjs +3 -1
  119. package/dist/api/vpcgw/v1/api.gen.js +3 -1
  120. package/dist/api/vpcgw/v2/api.gen.cjs +3 -1
  121. package/dist/api/vpcgw/v2/api.gen.js +3 -1
  122. package/dist/api/webhosting/v1/api.gen.cjs +6 -2
  123. package/dist/api/webhosting/v1/api.gen.js +6 -2
  124. package/dist/api/webhosting/v1/index.gen.d.ts +1 -1
  125. package/dist/api/webhosting/v1/marshalling.gen.cjs +27 -2
  126. package/dist/api/webhosting/v1/marshalling.gen.js +27 -2
  127. package/dist/api/webhosting/v1/types.gen.d.ts +64 -15
  128. package/dist/scw/constants.cjs +1 -1
  129. package/dist/scw/constants.d.ts +2 -2
  130. package/dist/scw/constants.js +1 -1
  131. package/package.json +2 -2
@@ -0,0 +1,397 @@
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
+ /**
31
+ * The number of bits each model parameter should be quantized to. The
32
+ * quantization method is chosen based on this value.
33
+ */
34
+ bits: number;
35
+ }
36
+ export interface Endpoint {
37
+ /** Unique identifier. */
38
+ id: string;
39
+ /**
40
+ * For private endpoints, the URL will be accessible only from the Private
41
+ * Network. In addition, private endpoints will expose a CA certificate that
42
+ * can be used to verify the server's identity. This CA certificate can be
43
+ * retrieved using the `GetDeploymentCertificate` API call.
44
+ */
45
+ url: string;
46
+ /**
47
+ * Defines whether the endpoint is public.
48
+ *
49
+ * One-of ('details'): at most one of 'publicNetwork', 'privateNetwork' could
50
+ * be set.
51
+ */
52
+ publicNetwork?: EndpointPublicNetworkDetails;
53
+ /**
54
+ * Details of the Private Network.
55
+ *
56
+ * One-of ('details'): at most one of 'publicNetwork', 'privateNetwork' could
57
+ * be set.
58
+ */
59
+ privateNetwork?: EndpointPrivateNetworkDetails;
60
+ /** Defines whether the authentication is disabled. */
61
+ disableAuth: boolean;
62
+ }
63
+ export interface ModelSupportInfo {
64
+ /** List of supported node types. */
65
+ nodes: ModelSupportedNode[];
66
+ }
67
+ export interface EndpointSpec {
68
+ /**
69
+ * Set the endpoint as public.
70
+ *
71
+ * One-of ('details'): at most one of 'publicNetwork', 'privateNetwork' could
72
+ * be set.
73
+ */
74
+ publicNetwork?: EndpointPublicNetworkDetails;
75
+ /**
76
+ * Private endpoints are only accessible from the Private Network.
77
+ *
78
+ * One-of ('details'): at most one of 'publicNetwork', 'privateNetwork' could
79
+ * be set.
80
+ */
81
+ privateNetwork?: EndpointPrivateNetworkDetails;
82
+ /**
83
+ * By default, deployments are protected by IAM authentication. When setting
84
+ * this field to true, the authentication will be disabled.
85
+ */
86
+ disableAuth: boolean;
87
+ }
88
+ export interface ModelSource {
89
+ url: string;
90
+ /** One-of ('credentials'): at most one of 'secret' could be set. */
91
+ secret?: string;
92
+ }
93
+ export interface Deployment {
94
+ /** Unique identifier. */
95
+ id: string;
96
+ /** Name of the deployment. */
97
+ name: string;
98
+ /** Project ID. */
99
+ projectId: string;
100
+ /** Status of the deployment. */
101
+ status: DeploymentStatus;
102
+ /** List of tags applied to the deployment. */
103
+ tags: string[];
104
+ /** Node type of the deployment. */
105
+ nodeTypeName: string;
106
+ /** List of endpoints. */
107
+ endpoints: Endpoint[];
108
+ /** Current size of the pool. */
109
+ size: number;
110
+ /** Defines the minimum size of the pool. */
111
+ minSize: number;
112
+ /** Defines the maximum size of the pool. */
113
+ maxSize: number;
114
+ /** Displays information if your deployment is in error state. */
115
+ errorMessage?: string;
116
+ /** ID of the model used for the deployment. */
117
+ modelId: string;
118
+ /** Quantization parameters for this deployment. */
119
+ quantization?: DeploymentQuantization;
120
+ /** Name of the deployed model. */
121
+ modelName: string;
122
+ /** Creation date of the deployment. */
123
+ createdAt?: Date;
124
+ /** Last modification date of the deployment. */
125
+ updatedAt?: Date;
126
+ /** Region of the deployment. */
127
+ region: ScwRegion;
128
+ }
129
+ export interface Model {
130
+ /** Unique identifier. */
131
+ id: string;
132
+ /** Unique Name identifier. */
133
+ name: string;
134
+ /** Project ID. */
135
+ projectId: string;
136
+ /** List of tags applied to the model. */
137
+ tags: string[];
138
+ /** Status of the model. */
139
+ status: ModelStatus;
140
+ /** Purpose of the model. */
141
+ description: string;
142
+ /** Displays information if your model is in error state. */
143
+ errorMessage?: string;
144
+ /** Defines whether the model has an end user license agreement. */
145
+ hasEula: boolean;
146
+ /** Creation date of the model. */
147
+ createdAt?: Date;
148
+ /** Last modification date of the model. */
149
+ updatedAt?: Date;
150
+ /** Region of the model. */
151
+ region: ScwRegion;
152
+ /** Supported nodes types with quantization options and context lengths. */
153
+ nodesSupport: ModelSupportInfo[];
154
+ /** Size, in bits, of the model parameters. */
155
+ parameterSizeBits: number;
156
+ /** Total size, in bytes, of the model files. */
157
+ sizeBytes: number;
158
+ }
159
+ export interface NodeType {
160
+ /** Name of the node type. */
161
+ name: string;
162
+ /** Current stock status for the node type. */
163
+ stockStatus: NodeTypeStock;
164
+ /** Current specs of the offer. */
165
+ description: string;
166
+ /** Number of virtual CPUs. */
167
+ vcpus: number;
168
+ /** Quantity of RAM. */
169
+ memory: number;
170
+ /** Quantity of GPU RAM. */
171
+ vram: number;
172
+ /** The node type is currently disabled. */
173
+ disabled: boolean;
174
+ /** The node type is currently in beta. */
175
+ beta: boolean;
176
+ /** Creation date of the node type. */
177
+ createdAt?: Date;
178
+ /** Last modification date of the node type. */
179
+ updatedAt?: Date;
180
+ /** Number of GPUs. */
181
+ gpus: number;
182
+ /** Region of the node type. */
183
+ region: ScwRegion;
184
+ }
185
+ export type CreateDeploymentRequest = {
186
+ /**
187
+ * Region to target. If none is passed will use default region from the
188
+ * config.
189
+ */
190
+ region?: ScwRegion;
191
+ /** Name of the deployment. */
192
+ name?: string;
193
+ /** ID of the Project to create the deployment in. */
194
+ projectId?: string;
195
+ /** ID of the model to use. */
196
+ modelId: string;
197
+ /**
198
+ * If the model has an EULA, you must accept it before proceeding. The terms
199
+ * of the EULA can be retrieved using the `GetModelEula` API call.
200
+ */
201
+ acceptEula?: boolean;
202
+ /** Name of the node type to use. */
203
+ nodeTypeName: string;
204
+ /** List of tags to apply to the deployment. */
205
+ tags?: string[];
206
+ /** Defines the minimum size of the pool. */
207
+ minSize?: number;
208
+ /** Defines the maximum size of the pool. */
209
+ maxSize?: number;
210
+ /** List of endpoints to create. */
211
+ endpoints: EndpointSpec[];
212
+ /** Quantization settings to apply to this deployment. */
213
+ quantization?: DeploymentQuantization;
214
+ };
215
+ export type CreateEndpointRequest = {
216
+ /**
217
+ * Region to target. If none is passed will use default region from the
218
+ * config.
219
+ */
220
+ region?: ScwRegion;
221
+ /** ID of the deployment to create the endpoint for. */
222
+ deploymentId: string;
223
+ /** Specification of the endpoint. */
224
+ endpoint: EndpointSpec;
225
+ };
226
+ export type CreateModelRequest = {
227
+ /**
228
+ * Region to target. If none is passed will use default region from the
229
+ * config.
230
+ */
231
+ region?: ScwRegion;
232
+ /** Name of the model. */
233
+ name?: string;
234
+ /** ID of the Project to import the model in. */
235
+ projectId?: string;
236
+ /** Where to import the model from. */
237
+ source: ModelSource;
238
+ };
239
+ export type DeleteDeploymentRequest = {
240
+ /**
241
+ * Region to target. If none is passed will use default region from the
242
+ * config.
243
+ */
244
+ region?: ScwRegion;
245
+ /** ID of the deployment to delete. */
246
+ deploymentId: string;
247
+ };
248
+ export type DeleteEndpointRequest = {
249
+ /**
250
+ * Region to target. If none is passed will use default region from the
251
+ * config.
252
+ */
253
+ region?: ScwRegion;
254
+ /** ID of the endpoint to delete. */
255
+ endpointId: string;
256
+ };
257
+ export type DeleteModelRequest = {
258
+ /**
259
+ * Region to target. If none is passed will use default region from the
260
+ * config.
261
+ */
262
+ region?: ScwRegion;
263
+ /** ID of the model to delete. */
264
+ modelId: string;
265
+ };
266
+ export type GetDeploymentCertificateRequest = {
267
+ /**
268
+ * Region to target. If none is passed will use default region from the
269
+ * config.
270
+ */
271
+ region?: ScwRegion;
272
+ deploymentId: string;
273
+ };
274
+ export type GetDeploymentRequest = {
275
+ /**
276
+ * Region to target. If none is passed will use default region from the
277
+ * config.
278
+ */
279
+ region?: ScwRegion;
280
+ /** ID of the deployment to get. */
281
+ deploymentId: string;
282
+ };
283
+ export type GetModelRequest = {
284
+ /**
285
+ * Region to target. If none is passed will use default region from the
286
+ * config.
287
+ */
288
+ region?: ScwRegion;
289
+ /** ID of the model to get. */
290
+ modelId: string;
291
+ };
292
+ export type ListDeploymentsRequest = {
293
+ /**
294
+ * Region to target. If none is passed will use default region from the
295
+ * config.
296
+ */
297
+ region?: ScwRegion;
298
+ /** Page number to return. */
299
+ page?: number;
300
+ /** Maximum number of deployments to return per page. */
301
+ pageSize?: number;
302
+ /** Order in which to return results. */
303
+ orderBy?: ListDeploymentsRequestOrderBy;
304
+ /** Filter by Project ID. */
305
+ projectId?: string;
306
+ /** Filter by Organization ID. */
307
+ organizationId?: string;
308
+ /** Filter by deployment name. */
309
+ name?: string;
310
+ /** Filter by tags. */
311
+ tags?: string[];
312
+ };
313
+ export interface ListDeploymentsResponse {
314
+ /** List of deployments on the current page. */
315
+ deployments: Deployment[];
316
+ /** Total number of deployments. */
317
+ totalCount: number;
318
+ }
319
+ export type ListModelsRequest = {
320
+ /**
321
+ * Region to target. If none is passed will use default region from the
322
+ * config.
323
+ */
324
+ region?: ScwRegion;
325
+ /** Order in which to return results. */
326
+ orderBy?: ListModelsRequestOrderBy;
327
+ /** Page number to return. */
328
+ page?: number;
329
+ /** Maximum number of models to return per page. */
330
+ pageSize?: number;
331
+ /** Filter by Project ID. */
332
+ projectId?: string;
333
+ /** Filter by model name. */
334
+ name?: string;
335
+ /** Filter by tags. */
336
+ tags?: string[];
337
+ };
338
+ export interface ListModelsResponse {
339
+ /** List of models on the current page. */
340
+ models: Model[];
341
+ /** Total number of models. */
342
+ totalCount: number;
343
+ }
344
+ export type ListNodeTypesRequest = {
345
+ /**
346
+ * Region to target. If none is passed will use default region from the
347
+ * config.
348
+ */
349
+ region?: ScwRegion;
350
+ /** Page number to return. */
351
+ page?: number;
352
+ /** Maximum number of node types to return per page. */
353
+ pageSize?: number;
354
+ /** Include disabled node types in the response. */
355
+ includeDisabledTypes: boolean;
356
+ };
357
+ export interface ListNodeTypesResponse {
358
+ /** List of node types. */
359
+ nodeTypes: NodeType[];
360
+ /** Total number of node types. */
361
+ totalCount: number;
362
+ }
363
+ export type UpdateDeploymentRequest = {
364
+ /**
365
+ * Region to target. If none is passed will use default region from the
366
+ * config.
367
+ */
368
+ region?: ScwRegion;
369
+ /** ID of the deployment to update. */
370
+ deploymentId: string;
371
+ /** Name of the deployment. */
372
+ name?: string;
373
+ /** List of tags to apply to the deployment. */
374
+ tags?: string[];
375
+ /** Defines the new minimum size of the pool. */
376
+ minSize?: number;
377
+ /** Defines the new maximum size of the pool. */
378
+ maxSize?: number;
379
+ /** Id of the model to set to the deployment. */
380
+ modelId?: string;
381
+ /** Quantization to use to the deployment. */
382
+ quantization?: DeploymentQuantization;
383
+ };
384
+ export type UpdateEndpointRequest = {
385
+ /**
386
+ * Region to target. If none is passed will use default region from the
387
+ * config.
388
+ */
389
+ region?: ScwRegion;
390
+ /** ID of the endpoint to update. */
391
+ endpointId: string;
392
+ /**
393
+ * By default, deployments are protected by IAM authentication. When setting
394
+ * this field to true, the authentication will be disabled.
395
+ */
396
+ disableAuth?: boolean;
397
+ };
@@ -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
+ };
@@ -60,7 +60,9 @@ class API extends api.API {
60
60
  * @returns A Promise of Deployment
61
61
  */
62
62
  waitForDeployment = (request, options) => intervalRetrier.waitForResource(
63
- options?.stop ?? ((res) => Promise.resolve(!content_gen.DEPLOYMENT_TRANSIENT_STATUSES.includes(res.status))),
63
+ options?.stop ?? ((res) => Promise.resolve(
64
+ !content_gen.DEPLOYMENT_TRANSIENT_STATUSES.includes(res.status)
65
+ )),
64
66
  this.getDeployment,
65
67
  request,
66
68
  options
@@ -58,7 +58,9 @@ class API extends API$1 {
58
58
  * @returns A Promise of Deployment
59
59
  */
60
60
  waitForDeployment = (request, options) => waitForResource(
61
- options?.stop ?? ((res) => Promise.resolve(!DEPLOYMENT_TRANSIENT_STATUSES.includes(res.status))),
61
+ options?.stop ?? ((res) => Promise.resolve(
62
+ !DEPLOYMENT_TRANSIENT_STATUSES.includes(res.status)
63
+ )),
62
64
  this.getDeployment,
63
65
  request,
64
66
  options
@@ -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(
@@ -844,11 +856,11 @@ const unmarshalServerType = (data) => {
844
856
  return {
845
857
  altNames: data.alt_names,
846
858
  arch: data.arch,
847
- baremetal: data.baremetal,
848
859
  blockBandwidth: data.block_bandwidth,
849
860
  capabilities: data.capabilities ? unmarshalServerTypeCapabilities(data.capabilities) : void 0,
850
861
  endOfService: data.end_of_service,
851
862
  gpu: data.gpu,
863
+ gpuInfo: data.gpu_info ? unmarshalServerTypeGPUInfo(data.gpu_info) : void 0,
852
864
  hourlyPrice: data.hourly_price,
853
865
  monthlyPrice: data.monthly_price,
854
866
  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(
@@ -842,11 +854,11 @@ const unmarshalServerType = (data) => {
842
854
  return {
843
855
  altNames: data.alt_names,
844
856
  arch: data.arch,
845
- baremetal: data.baremetal,
846
857
  blockBandwidth: data.block_bandwidth,
847
858
  capabilities: data.capabilities ? unmarshalServerTypeCapabilities(data.capabilities) : void 0,
848
859
  endOfService: data.end_of_service,
849
860
  gpu: data.gpu,
861
+ gpuInfo: data.gpu_info ? unmarshalServerTypeGPUInfo(data.gpu_info) : void 0,
850
862
  hourlyPrice: data.hourly_price,
851
863
  monthlyPrice: data.monthly_price,
852
864
  ncpus: data.ncpus,