@scaleway/sdk 2.72.0 → 2.73.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 +13 -32
- package/dist/api/account/v3/api.gen.d.ts +17 -36
- package/dist/api/account/v3/api.gen.js +13 -32
- package/dist/api/account/v3/types.gen.d.ts +187 -85
- package/dist/api/applesilicon/v1alpha1/api.gen.cjs +19 -46
- package/dist/api/applesilicon/v1alpha1/api.gen.d.ts +24 -49
- package/dist/api/applesilicon/v1alpha1/api.gen.js +19 -46
- package/dist/api/applesilicon/v1alpha1/types.gen.d.ts +310 -135
- package/dist/api/audit_trail/v1alpha1/api.gen.cjs +2 -5
- package/dist/api/audit_trail/v1alpha1/api.gen.d.ts +4 -8
- package/dist/api/audit_trail/v1alpha1/api.gen.js +2 -5
- package/dist/api/audit_trail/v1alpha1/types.gen.d.ts +110 -82
- package/dist/api/baremetal/v1/api.gen.cjs +28 -61
- package/dist/api/baremetal/v1/api.gen.d.ts +29 -60
- package/dist/api/baremetal/v1/api.gen.js +28 -61
- package/dist/api/baremetal/v1/types.gen.d.ts +802 -315
- package/dist/api/baremetal/v3/api.gen.cjs +7 -14
- package/dist/api/baremetal/v3/api.gen.d.ts +10 -15
- package/dist/api/baremetal/v3/api.gen.js +7 -14
- package/dist/api/baremetal/v3/types.gen.d.ts +82 -32
- package/dist/api/billing/v2beta1/api.gen.cjs +11 -20
- package/dist/api/billing/v2beta1/api.gen.d.ts +9 -19
- package/dist/api/billing/v2beta1/api.gen.js +11 -20
- package/dist/api/billing/v2beta1/types.gen.d.ts +231 -102
- package/dist/api/block/v1/api.gen.cjs +37 -55
- package/dist/api/block/v1/api.gen.d.ts +19 -37
- package/dist/api/block/v1/api.gen.js +37 -55
- package/dist/api/block/v1/types.gen.d.ts +306 -125
- package/dist/api/block/v1alpha1/api.gen.cjs +45 -64
- package/dist/api/block/v1alpha1/api.gen.d.ts +22 -41
- package/dist/api/block/v1alpha1/api.gen.js +45 -64
- package/dist/api/block/v1alpha1/types.gen.d.ts +327 -132
- package/dist/api/cockpit/v1/api.gen.cjs +100 -156
- package/dist/api/cockpit/v1/api.gen.d.ts +53 -112
- package/dist/api/cockpit/v1/api.gen.js +100 -156
- package/dist/api/cockpit/v1/types.gen.d.ts +567 -246
- package/dist/api/container/v1beta1/api.gen.cjs +7 -14
- package/dist/api/container/v1beta1/api.gen.d.ts +9 -16
- package/dist/api/container/v1beta1/api.gen.js +7 -14
- package/dist/api/container/v1beta1/types.gen.d.ts +648 -322
- package/dist/api/dedibox/v1/api.gen.cjs +45 -69
- package/dist/api/dedibox/v1/api.gen.d.ts +52 -62
- package/dist/api/dedibox/v1/api.gen.js +45 -69
- package/dist/api/dedibox/v1/types.gen.d.ts +1765 -645
- package/dist/api/domain/v2beta1/api.gen.cjs +119 -178
- package/dist/api/domain/v2beta1/api.gen.d.ts +71 -130
- package/dist/api/domain/v2beta1/api.gen.js +119 -178
- package/dist/api/domain/v2beta1/content.gen.d.ts +1 -4
- package/dist/api/domain/v2beta1/types.gen.d.ts +411 -199
- package/dist/api/flexibleip/v1alpha1/api.gen.cjs +10 -25
- package/dist/api/flexibleip/v1alpha1/api.gen.d.ts +12 -28
- package/dist/api/flexibleip/v1alpha1/api.gen.js +10 -25
- package/dist/api/flexibleip/v1alpha1/types.gen.d.ts +186 -78
- package/dist/api/inference/v1/api.gen.cjs +8 -11
- package/dist/api/inference/v1/api.gen.d.ts +6 -9
- package/dist/api/inference/v1/api.gen.js +8 -11
- package/dist/api/inference/v1/types.gen.d.ts +330 -150
- package/dist/api/inference/v1beta1/api.gen.cjs +8 -11
- package/dist/api/inference/v1beta1/api.gen.d.ts +6 -9
- package/dist/api/inference/v1beta1/api.gen.js +8 -11
- package/dist/api/inference/v1beta1/types.gen.d.ts +341 -154
- package/dist/api/instance/v1/api.gen.cjs +64 -113
- package/dist/api/instance/v1/api.gen.d.ts +54 -103
- package/dist/api/instance/v1/api.gen.js +64 -113
- package/dist/api/instance/v1/types.gen.d.ts +1351 -598
- package/dist/api/instance/v1/types.private.gen.d.ts +131 -59
- package/dist/api/interlink/v1beta1/api.gen.cjs +21 -67
- package/dist/api/interlink/v1beta1/api.gen.d.ts +23 -70
- package/dist/api/interlink/v1beta1/api.gen.js +21 -67
- package/dist/api/interlink/v1beta1/marshalling.gen.cjs +2 -0
- package/dist/api/interlink/v1beta1/marshalling.gen.js +2 -0
- package/dist/api/interlink/v1beta1/types.gen.d.ts +464 -216
- package/dist/api/interlink/v1beta1/validation-rules.gen.cjs +8 -0
- package/dist/api/interlink/v1beta1/validation-rules.gen.d.ts +8 -0
- package/dist/api/interlink/v1beta1/validation-rules.gen.js +8 -0
- package/dist/api/iot/v1/api.gen.cjs +37 -70
- package/dist/api/iot/v1/api.gen.d.ts +34 -67
- package/dist/api/iot/v1/api.gen.js +37 -70
- package/dist/api/iot/v1/types.gen.d.ts +566 -321
- package/dist/api/ipam/v1/api.gen.cjs +6 -26
- package/dist/api/ipam/v1/api.gen.d.ts +8 -29
- package/dist/api/ipam/v1/api.gen.js +6 -26
- package/dist/api/ipam/v1/types.gen.d.ts +146 -105
- package/dist/api/jobs/v1alpha1/api.gen.cjs +2 -4
- package/dist/api/jobs/v1alpha1/api.gen.d.ts +4 -6
- package/dist/api/jobs/v1alpha1/api.gen.js +2 -4
- package/dist/api/jobs/v1alpha1/types.gen.d.ts +165 -91
- package/dist/api/k8s/v1/api.gen.cjs +33 -78
- package/dist/api/k8s/v1/api.gen.d.ts +27 -72
- package/dist/api/k8s/v1/api.gen.js +33 -78
- package/dist/api/k8s/v1/types.gen.d.ts +743 -506
- package/dist/api/key_manager/v1alpha1/api.gen.cjs +21 -57
- package/dist/api/key_manager/v1alpha1/api.gen.d.ts +19 -56
- package/dist/api/key_manager/v1alpha1/api.gen.js +21 -57
- package/dist/api/key_manager/v1alpha1/types.gen.d.ts +196 -114
- package/dist/api/marketplace/v2/api.gen.cjs +8 -21
- package/dist/api/marketplace/v2/api.gen.d.ts +10 -24
- package/dist/api/marketplace/v2/api.gen.js +8 -21
- package/dist/api/marketplace/v2/types.gen.d.ts +94 -41
- package/dist/api/mnq/v1beta1/api.gen.cjs +24 -76
- package/dist/api/mnq/v1beta1/api.gen.d.ts +30 -82
- package/dist/api/mnq/v1beta1/api.gen.js +24 -76
- package/dist/api/mnq/v1beta1/types.gen.d.ts +342 -169
- package/dist/api/mongodb/v1alpha1/api.gen.cjs +19 -62
- package/dist/api/mongodb/v1alpha1/api.gen.d.ts +21 -64
- package/dist/api/mongodb/v1alpha1/api.gen.js +19 -62
- package/dist/api/mongodb/v1alpha1/types.gen.d.ts +443 -189
- package/dist/api/qaas/v1alpha1/api.gen.cjs +17 -34
- package/dist/api/qaas/v1alpha1/api.gen.d.ts +19 -36
- package/dist/api/qaas/v1alpha1/api.gen.js +17 -34
- package/dist/api/qaas/v1alpha1/types.gen.d.ts +502 -174
- package/dist/api/rdb/v1/api.gen.cjs +62 -202
- package/dist/api/rdb/v1/api.gen.d.ts +60 -201
- package/dist/api/rdb/v1/api.gen.js +62 -202
- package/dist/api/rdb/v1/types.gen.d.ts +1005 -524
- package/dist/api/redis/v1/api.gen.cjs +23 -83
- package/dist/api/redis/v1/api.gen.d.ts +25 -85
- package/dist/api/redis/v1/api.gen.js +23 -83
- package/dist/api/redis/v1/types.gen.d.ts +447 -170
- package/dist/api/registry/v1/api.gen.cjs +12 -40
- package/dist/api/registry/v1/api.gen.d.ts +14 -42
- package/dist/api/registry/v1/api.gen.js +12 -40
- package/dist/api/registry/v1/types.gen.d.ts +200 -116
- package/dist/api/secret/v1beta1/api.gen.cjs +19 -47
- package/dist/api/secret/v1beta1/api.gen.d.ts +21 -51
- package/dist/api/secret/v1beta1/api.gen.js +19 -47
- package/dist/api/secret/v1beta1/types.gen.d.ts +359 -224
- package/dist/api/serverless_sqldb/v1alpha1/api.gen.cjs +9 -27
- package/dist/api/serverless_sqldb/v1alpha1/api.gen.d.ts +11 -29
- package/dist/api/serverless_sqldb/v1alpha1/api.gen.js +9 -27
- package/dist/api/serverless_sqldb/v1alpha1/types.gen.d.ts +168 -76
- package/dist/api/tem/v1alpha1/api.gen.cjs +22 -58
- package/dist/api/tem/v1alpha1/api.gen.d.ts +24 -60
- package/dist/api/tem/v1alpha1/api.gen.js +22 -58
- package/dist/api/tem/v1alpha1/types.gen.d.ts +761 -338
- package/dist/api/test/v1/api.gen.cjs +8 -11
- package/dist/api/test/v1/api.gen.d.ts +6 -9
- package/dist/api/test/v1/api.gen.js +8 -11
- package/dist/api/test/v1/types.gen.d.ts +21 -10
- package/dist/client/dist/package.json.cjs +1 -1
- package/dist/client/dist/package.json.js +1 -1
- package/node_modules/@scaleway/sdk-client/dist/package.json.cjs +1 -1
- package/node_modules/@scaleway/sdk-client/dist/package.json.js +1 -1
- package/node_modules/@scaleway/sdk-client/package.json +1 -2
- package/package.json +2 -2
- package/node_modules/@scaleway/sdk-client/LICENSE +0 -191
|
@@ -5,13 +5,16 @@ export type ListModelsRequestOrderBy = 'display_rank_asc' | 'created_at_asc' | '
|
|
|
5
5
|
export type ModelStatus = 'unknown_status' | 'preparing' | 'downloading' | 'ready' | 'error';
|
|
6
6
|
export type NodeTypeStock = 'unknown_stock' | 'low_stock' | 'out_of_stock' | 'available';
|
|
7
7
|
export interface ModelSupportedQuantization {
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* Number of bits for this supported quantization.
|
|
10
|
+
*/
|
|
9
11
|
quantizationBits: number;
|
|
10
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* Tells whether this quantization is allowed for this node type.
|
|
14
|
+
*/
|
|
11
15
|
allowed: boolean;
|
|
12
16
|
/**
|
|
13
|
-
* Maximum inference context size available for this node type and
|
|
14
|
-
* quantization.
|
|
17
|
+
* Maximum inference context size available for this node type and quantization.
|
|
15
18
|
*/
|
|
16
19
|
maxContextSize: number;
|
|
17
20
|
}
|
|
@@ -21,377 +24,554 @@ export interface EndpointPrivateNetworkDetails {
|
|
|
21
24
|
export interface EndpointPublicNetworkDetails {
|
|
22
25
|
}
|
|
23
26
|
export interface ModelSupportedNode {
|
|
24
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Supported node type.
|
|
29
|
+
*/
|
|
25
30
|
nodeTypeName: string;
|
|
26
|
-
/**
|
|
31
|
+
/**
|
|
32
|
+
* Supported quantizations.
|
|
33
|
+
*/
|
|
27
34
|
quantizations: ModelSupportedQuantization[];
|
|
28
35
|
}
|
|
29
36
|
export interface DeploymentQuantization {
|
|
30
37
|
/**
|
|
31
|
-
* The number of bits each model parameter should be quantized to. The
|
|
32
|
-
* quantization method is chosen based on this value.
|
|
38
|
+
* The number of bits each model parameter should be quantized to. The quantization method is chosen based on this value.
|
|
33
39
|
*/
|
|
34
40
|
bits: number;
|
|
35
41
|
}
|
|
36
42
|
export interface Endpoint {
|
|
37
|
-
/**
|
|
43
|
+
/**
|
|
44
|
+
* Unique identifier.
|
|
45
|
+
*/
|
|
38
46
|
id: string;
|
|
39
47
|
/**
|
|
40
|
-
* For private endpoints, the URL will be accessible only from the Private
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
* retrieved using the `GetDeploymentCertificate` API call.
|
|
48
|
+
* For private endpoints, the URL will be accessible only from the Private Network.
|
|
49
|
+
In addition, private endpoints will expose a CA certificate that can be used to verify the server's identity.
|
|
50
|
+
This CA certificate can be retrieved using the `GetDeploymentCertificate` API call.
|
|
44
51
|
*/
|
|
45
52
|
url: string;
|
|
46
53
|
/**
|
|
47
54
|
* Defines whether the endpoint is public.
|
|
48
55
|
*
|
|
49
|
-
* One-of ('details'): at most one of 'publicNetwork', 'privateNetwork' could
|
|
50
|
-
* be set.
|
|
56
|
+
* One-of ('details'): at most one of 'publicNetwork', 'privateNetwork' could be set.
|
|
51
57
|
*/
|
|
52
58
|
publicNetwork?: EndpointPublicNetworkDetails;
|
|
53
59
|
/**
|
|
54
60
|
* Details of the Private Network.
|
|
55
61
|
*
|
|
56
|
-
* One-of ('details'): at most one of 'publicNetwork', 'privateNetwork' could
|
|
57
|
-
* be set.
|
|
62
|
+
* One-of ('details'): at most one of 'publicNetwork', 'privateNetwork' could be set.
|
|
58
63
|
*/
|
|
59
64
|
privateNetwork?: EndpointPrivateNetworkDetails;
|
|
60
|
-
/**
|
|
65
|
+
/**
|
|
66
|
+
* Defines whether the authentication is disabled.
|
|
67
|
+
*/
|
|
61
68
|
disableAuth: boolean;
|
|
62
69
|
}
|
|
63
70
|
export interface ModelSupportInfo {
|
|
64
|
-
/**
|
|
71
|
+
/**
|
|
72
|
+
* List of supported node types.
|
|
73
|
+
*/
|
|
65
74
|
nodes: ModelSupportedNode[];
|
|
66
75
|
}
|
|
67
76
|
export interface EndpointSpec {
|
|
68
77
|
/**
|
|
69
78
|
* Set the endpoint as public.
|
|
70
79
|
*
|
|
71
|
-
* One-of ('details'): at most one of 'publicNetwork', 'privateNetwork' could
|
|
72
|
-
* be set.
|
|
80
|
+
* One-of ('details'): at most one of 'publicNetwork', 'privateNetwork' could be set.
|
|
73
81
|
*/
|
|
74
82
|
publicNetwork?: EndpointPublicNetworkDetails;
|
|
75
83
|
/**
|
|
76
84
|
* Private endpoints are only accessible from the Private Network.
|
|
77
85
|
*
|
|
78
|
-
* One-of ('details'): at most one of 'publicNetwork', 'privateNetwork' could
|
|
79
|
-
* be set.
|
|
86
|
+
* One-of ('details'): at most one of 'publicNetwork', 'privateNetwork' could be set.
|
|
80
87
|
*/
|
|
81
88
|
privateNetwork?: EndpointPrivateNetworkDetails;
|
|
82
89
|
/**
|
|
83
|
-
* By default, deployments are protected by IAM authentication.
|
|
84
|
-
|
|
90
|
+
* By default, deployments are protected by IAM authentication.
|
|
91
|
+
When setting this field to true, the authentication will be disabled.
|
|
85
92
|
*/
|
|
86
93
|
disableAuth: boolean;
|
|
87
94
|
}
|
|
88
95
|
export interface ModelSource {
|
|
89
96
|
url: string;
|
|
90
|
-
/**
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* One-of ('credentials'): at most one of 'secret' could be set.
|
|
100
|
+
*/
|
|
91
101
|
secret?: string;
|
|
92
102
|
}
|
|
93
103
|
export interface Deployment {
|
|
94
|
-
/**
|
|
104
|
+
/**
|
|
105
|
+
* Unique identifier.
|
|
106
|
+
*/
|
|
95
107
|
id: string;
|
|
96
|
-
/**
|
|
108
|
+
/**
|
|
109
|
+
* Name of the deployment.
|
|
110
|
+
*/
|
|
97
111
|
name: string;
|
|
98
|
-
/**
|
|
112
|
+
/**
|
|
113
|
+
* Project ID.
|
|
114
|
+
*/
|
|
99
115
|
projectId: string;
|
|
100
|
-
/**
|
|
116
|
+
/**
|
|
117
|
+
* Status of the deployment.
|
|
118
|
+
*/
|
|
101
119
|
status: DeploymentStatus;
|
|
102
|
-
/**
|
|
120
|
+
/**
|
|
121
|
+
* List of tags applied to the deployment.
|
|
122
|
+
*/
|
|
103
123
|
tags: string[];
|
|
104
|
-
/**
|
|
124
|
+
/**
|
|
125
|
+
* Node type of the deployment.
|
|
126
|
+
*/
|
|
105
127
|
nodeTypeName: string;
|
|
106
|
-
/**
|
|
128
|
+
/**
|
|
129
|
+
* List of endpoints.
|
|
130
|
+
*/
|
|
107
131
|
endpoints: Endpoint[];
|
|
108
|
-
/**
|
|
132
|
+
/**
|
|
133
|
+
* Current size of the pool.
|
|
134
|
+
*/
|
|
109
135
|
size: number;
|
|
110
|
-
/**
|
|
136
|
+
/**
|
|
137
|
+
* Defines the minimum size of the pool.
|
|
138
|
+
*/
|
|
111
139
|
minSize: number;
|
|
112
|
-
/**
|
|
140
|
+
/**
|
|
141
|
+
* Defines the maximum size of the pool.
|
|
142
|
+
*/
|
|
113
143
|
maxSize: number;
|
|
114
|
-
/**
|
|
144
|
+
/**
|
|
145
|
+
* Displays information if your deployment is in error state.
|
|
146
|
+
*/
|
|
115
147
|
errorMessage?: string;
|
|
116
|
-
/**
|
|
148
|
+
/**
|
|
149
|
+
* ID of the model used for the deployment.
|
|
150
|
+
*/
|
|
117
151
|
modelId: string;
|
|
118
|
-
/**
|
|
152
|
+
/**
|
|
153
|
+
* Quantization parameters for this deployment.
|
|
154
|
+
*/
|
|
119
155
|
quantization?: DeploymentQuantization;
|
|
120
|
-
/**
|
|
156
|
+
/**
|
|
157
|
+
* Name of the deployed model.
|
|
158
|
+
*/
|
|
121
159
|
modelName: string;
|
|
122
|
-
/**
|
|
160
|
+
/**
|
|
161
|
+
* Creation date of the deployment.
|
|
162
|
+
*/
|
|
123
163
|
createdAt?: Date;
|
|
124
|
-
/**
|
|
164
|
+
/**
|
|
165
|
+
* Last modification date of the deployment.
|
|
166
|
+
*/
|
|
125
167
|
updatedAt?: Date;
|
|
126
|
-
/**
|
|
168
|
+
/**
|
|
169
|
+
* Region of the deployment.
|
|
170
|
+
*/
|
|
127
171
|
region: ScwRegion;
|
|
128
172
|
}
|
|
129
173
|
export interface Model {
|
|
130
|
-
/**
|
|
174
|
+
/**
|
|
175
|
+
* Unique identifier.
|
|
176
|
+
*/
|
|
131
177
|
id: string;
|
|
132
|
-
/**
|
|
178
|
+
/**
|
|
179
|
+
* Unique Name identifier.
|
|
180
|
+
*/
|
|
133
181
|
name: string;
|
|
134
|
-
/**
|
|
182
|
+
/**
|
|
183
|
+
* Project ID.
|
|
184
|
+
*/
|
|
135
185
|
projectId: string;
|
|
136
|
-
/**
|
|
186
|
+
/**
|
|
187
|
+
* List of tags applied to the model.
|
|
188
|
+
*/
|
|
137
189
|
tags: string[];
|
|
138
|
-
/**
|
|
190
|
+
/**
|
|
191
|
+
* Status of the model.
|
|
192
|
+
*/
|
|
139
193
|
status: ModelStatus;
|
|
140
|
-
/**
|
|
194
|
+
/**
|
|
195
|
+
* Purpose of the model.
|
|
196
|
+
*/
|
|
141
197
|
description: string;
|
|
142
|
-
/**
|
|
198
|
+
/**
|
|
199
|
+
* Displays information if your model is in error state.
|
|
200
|
+
*/
|
|
143
201
|
errorMessage?: string;
|
|
144
|
-
/**
|
|
202
|
+
/**
|
|
203
|
+
* Defines whether the model has an end user license agreement.
|
|
204
|
+
*/
|
|
145
205
|
hasEula: boolean;
|
|
146
|
-
/**
|
|
206
|
+
/**
|
|
207
|
+
* Creation date of the model.
|
|
208
|
+
*/
|
|
147
209
|
createdAt?: Date;
|
|
148
|
-
/**
|
|
210
|
+
/**
|
|
211
|
+
* Last modification date of the model.
|
|
212
|
+
*/
|
|
149
213
|
updatedAt?: Date;
|
|
150
|
-
/**
|
|
214
|
+
/**
|
|
215
|
+
* Region of the model.
|
|
216
|
+
*/
|
|
151
217
|
region: ScwRegion;
|
|
152
|
-
/**
|
|
218
|
+
/**
|
|
219
|
+
* Supported nodes types with quantization options and context lengths.
|
|
220
|
+
*/
|
|
153
221
|
nodesSupport: ModelSupportInfo[];
|
|
154
|
-
/**
|
|
222
|
+
/**
|
|
223
|
+
* Size, in bits, of the model parameters.
|
|
224
|
+
*/
|
|
155
225
|
parameterSizeBits: number;
|
|
156
|
-
/**
|
|
226
|
+
/**
|
|
227
|
+
* Total size, in bytes, of the model files.
|
|
228
|
+
*/
|
|
157
229
|
sizeBytes: number;
|
|
158
230
|
}
|
|
159
231
|
export interface NodeType {
|
|
160
|
-
/**
|
|
232
|
+
/**
|
|
233
|
+
* Name of the node type.
|
|
234
|
+
*/
|
|
161
235
|
name: string;
|
|
162
|
-
/**
|
|
236
|
+
/**
|
|
237
|
+
* Current stock status for the node type.
|
|
238
|
+
*/
|
|
163
239
|
stockStatus: NodeTypeStock;
|
|
164
|
-
/**
|
|
240
|
+
/**
|
|
241
|
+
* Current specs of the offer.
|
|
242
|
+
*/
|
|
165
243
|
description: string;
|
|
166
|
-
/**
|
|
244
|
+
/**
|
|
245
|
+
* Number of virtual CPUs.
|
|
246
|
+
*/
|
|
167
247
|
vcpus: number;
|
|
168
|
-
/**
|
|
248
|
+
/**
|
|
249
|
+
* Quantity of RAM.
|
|
250
|
+
*/
|
|
169
251
|
memory: number;
|
|
170
|
-
/**
|
|
252
|
+
/**
|
|
253
|
+
* Quantity of GPU RAM.
|
|
254
|
+
*/
|
|
171
255
|
vram: number;
|
|
172
|
-
/**
|
|
256
|
+
/**
|
|
257
|
+
* The node type is currently disabled.
|
|
258
|
+
*/
|
|
173
259
|
disabled: boolean;
|
|
174
|
-
/**
|
|
260
|
+
/**
|
|
261
|
+
* The node type is currently in beta.
|
|
262
|
+
*/
|
|
175
263
|
beta: boolean;
|
|
176
|
-
/**
|
|
264
|
+
/**
|
|
265
|
+
* Creation date of the node type.
|
|
266
|
+
*/
|
|
177
267
|
createdAt?: Date;
|
|
178
|
-
/**
|
|
268
|
+
/**
|
|
269
|
+
* Last modification date of the node type.
|
|
270
|
+
*/
|
|
179
271
|
updatedAt?: Date;
|
|
180
|
-
/**
|
|
272
|
+
/**
|
|
273
|
+
* Number of GPUs.
|
|
274
|
+
*/
|
|
181
275
|
gpus: number;
|
|
182
|
-
/**
|
|
276
|
+
/**
|
|
277
|
+
* Region of the node type.
|
|
278
|
+
*/
|
|
183
279
|
region: ScwRegion;
|
|
184
280
|
}
|
|
185
281
|
export type CreateDeploymentRequest = {
|
|
186
282
|
/**
|
|
187
|
-
* Region to target. If none is passed will use default region from the
|
|
188
|
-
* config.
|
|
283
|
+
* Region to target. If none is passed will use default region from the config.
|
|
189
284
|
*/
|
|
190
285
|
region?: ScwRegion;
|
|
191
|
-
/**
|
|
286
|
+
/**
|
|
287
|
+
* Name of the deployment.
|
|
288
|
+
*/
|
|
192
289
|
name?: string;
|
|
193
|
-
/**
|
|
290
|
+
/**
|
|
291
|
+
* ID of the Project to create the deployment in.
|
|
292
|
+
*/
|
|
194
293
|
projectId?: string;
|
|
195
|
-
/**
|
|
294
|
+
/**
|
|
295
|
+
* ID of the model to use.
|
|
296
|
+
*/
|
|
196
297
|
modelId: string;
|
|
197
298
|
/**
|
|
198
|
-
* If the model has an EULA, you must accept it before proceeding.
|
|
199
|
-
|
|
299
|
+
* If the model has an EULA, you must accept it before proceeding.
|
|
300
|
+
The terms of the EULA can be retrieved using the `GetModelEula` API call.
|
|
200
301
|
*/
|
|
201
302
|
acceptEula?: boolean;
|
|
202
|
-
/**
|
|
303
|
+
/**
|
|
304
|
+
* Name of the node type to use.
|
|
305
|
+
*/
|
|
203
306
|
nodeTypeName: string;
|
|
204
|
-
/**
|
|
307
|
+
/**
|
|
308
|
+
* List of tags to apply to the deployment.
|
|
309
|
+
*/
|
|
205
310
|
tags?: string[];
|
|
206
|
-
/**
|
|
311
|
+
/**
|
|
312
|
+
* Defines the minimum size of the pool.
|
|
313
|
+
*/
|
|
207
314
|
minSize?: number;
|
|
208
|
-
/**
|
|
315
|
+
/**
|
|
316
|
+
* Defines the maximum size of the pool.
|
|
317
|
+
*/
|
|
209
318
|
maxSize?: number;
|
|
210
|
-
/**
|
|
319
|
+
/**
|
|
320
|
+
* List of endpoints to create.
|
|
321
|
+
*/
|
|
211
322
|
endpoints: EndpointSpec[];
|
|
212
|
-
/**
|
|
323
|
+
/**
|
|
324
|
+
* Quantization settings to apply to this deployment.
|
|
325
|
+
*/
|
|
213
326
|
quantization?: DeploymentQuantization;
|
|
214
327
|
};
|
|
215
328
|
export type CreateEndpointRequest = {
|
|
216
329
|
/**
|
|
217
|
-
* Region to target. If none is passed will use default region from the
|
|
218
|
-
* config.
|
|
330
|
+
* Region to target. If none is passed will use default region from the config.
|
|
219
331
|
*/
|
|
220
332
|
region?: ScwRegion;
|
|
221
|
-
/**
|
|
333
|
+
/**
|
|
334
|
+
* ID of the deployment to create the endpoint for.
|
|
335
|
+
*/
|
|
222
336
|
deploymentId: string;
|
|
223
|
-
/**
|
|
337
|
+
/**
|
|
338
|
+
* Specification of the endpoint.
|
|
339
|
+
*/
|
|
224
340
|
endpoint: EndpointSpec;
|
|
225
341
|
};
|
|
226
342
|
export type CreateModelRequest = {
|
|
227
343
|
/**
|
|
228
|
-
* Region to target. If none is passed will use default region from the
|
|
229
|
-
* config.
|
|
344
|
+
* Region to target. If none is passed will use default region from the config.
|
|
230
345
|
*/
|
|
231
346
|
region?: ScwRegion;
|
|
232
|
-
/**
|
|
347
|
+
/**
|
|
348
|
+
* Name of the model.
|
|
349
|
+
*/
|
|
233
350
|
name?: string;
|
|
234
|
-
/**
|
|
351
|
+
/**
|
|
352
|
+
* ID of the Project to import the model in.
|
|
353
|
+
*/
|
|
235
354
|
projectId?: string;
|
|
236
|
-
/**
|
|
355
|
+
/**
|
|
356
|
+
* Where to import the model from.
|
|
357
|
+
*/
|
|
237
358
|
source: ModelSource;
|
|
238
359
|
};
|
|
239
360
|
export type DeleteDeploymentRequest = {
|
|
240
361
|
/**
|
|
241
|
-
* Region to target. If none is passed will use default region from the
|
|
242
|
-
* config.
|
|
362
|
+
* Region to target. If none is passed will use default region from the config.
|
|
243
363
|
*/
|
|
244
364
|
region?: ScwRegion;
|
|
245
|
-
/**
|
|
365
|
+
/**
|
|
366
|
+
* ID of the deployment to delete.
|
|
367
|
+
*/
|
|
246
368
|
deploymentId: string;
|
|
247
369
|
};
|
|
248
370
|
export type DeleteEndpointRequest = {
|
|
249
371
|
/**
|
|
250
|
-
* Region to target. If none is passed will use default region from the
|
|
251
|
-
* config.
|
|
372
|
+
* Region to target. If none is passed will use default region from the config.
|
|
252
373
|
*/
|
|
253
374
|
region?: ScwRegion;
|
|
254
|
-
/**
|
|
375
|
+
/**
|
|
376
|
+
* ID of the endpoint to delete.
|
|
377
|
+
*/
|
|
255
378
|
endpointId: string;
|
|
256
379
|
};
|
|
257
380
|
export type DeleteModelRequest = {
|
|
258
381
|
/**
|
|
259
|
-
* Region to target. If none is passed will use default region from the
|
|
260
|
-
* config.
|
|
382
|
+
* Region to target. If none is passed will use default region from the config.
|
|
261
383
|
*/
|
|
262
384
|
region?: ScwRegion;
|
|
263
|
-
/**
|
|
385
|
+
/**
|
|
386
|
+
* ID of the model to delete.
|
|
387
|
+
*/
|
|
264
388
|
modelId: string;
|
|
265
389
|
};
|
|
266
390
|
export type GetDeploymentCertificateRequest = {
|
|
267
391
|
/**
|
|
268
|
-
* Region to target. If none is passed will use default region from the
|
|
269
|
-
* config.
|
|
392
|
+
* Region to target. If none is passed will use default region from the config.
|
|
270
393
|
*/
|
|
271
394
|
region?: ScwRegion;
|
|
272
395
|
deploymentId: string;
|
|
273
396
|
};
|
|
274
397
|
export type GetDeploymentRequest = {
|
|
275
398
|
/**
|
|
276
|
-
* Region to target. If none is passed will use default region from the
|
|
277
|
-
* config.
|
|
399
|
+
* Region to target. If none is passed will use default region from the config.
|
|
278
400
|
*/
|
|
279
401
|
region?: ScwRegion;
|
|
280
|
-
/**
|
|
402
|
+
/**
|
|
403
|
+
* ID of the deployment to get.
|
|
404
|
+
*/
|
|
281
405
|
deploymentId: string;
|
|
282
406
|
};
|
|
283
407
|
export type GetModelRequest = {
|
|
284
408
|
/**
|
|
285
|
-
* Region to target. If none is passed will use default region from the
|
|
286
|
-
* config.
|
|
409
|
+
* Region to target. If none is passed will use default region from the config.
|
|
287
410
|
*/
|
|
288
411
|
region?: ScwRegion;
|
|
289
|
-
/**
|
|
412
|
+
/**
|
|
413
|
+
* ID of the model to get.
|
|
414
|
+
*/
|
|
290
415
|
modelId: string;
|
|
291
416
|
};
|
|
292
417
|
export type ListDeploymentsRequest = {
|
|
293
418
|
/**
|
|
294
|
-
* Region to target. If none is passed will use default region from the
|
|
295
|
-
* config.
|
|
419
|
+
* Region to target. If none is passed will use default region from the config.
|
|
296
420
|
*/
|
|
297
421
|
region?: ScwRegion;
|
|
298
|
-
/**
|
|
422
|
+
/**
|
|
423
|
+
* Page number to return.
|
|
424
|
+
*/
|
|
299
425
|
page?: number;
|
|
300
|
-
/**
|
|
426
|
+
/**
|
|
427
|
+
* Maximum number of deployments to return per page.
|
|
428
|
+
*/
|
|
301
429
|
pageSize?: number;
|
|
302
|
-
/**
|
|
430
|
+
/**
|
|
431
|
+
* Order in which to return results.
|
|
432
|
+
*/
|
|
303
433
|
orderBy?: ListDeploymentsRequestOrderBy;
|
|
304
|
-
/**
|
|
434
|
+
/**
|
|
435
|
+
* Filter by Project ID.
|
|
436
|
+
*/
|
|
305
437
|
projectId?: string;
|
|
306
|
-
/**
|
|
438
|
+
/**
|
|
439
|
+
* Filter by Organization ID.
|
|
440
|
+
*/
|
|
307
441
|
organizationId?: string;
|
|
308
|
-
/**
|
|
442
|
+
/**
|
|
443
|
+
* Filter by deployment name.
|
|
444
|
+
*/
|
|
309
445
|
name?: string;
|
|
310
|
-
/**
|
|
446
|
+
/**
|
|
447
|
+
* Filter by tags.
|
|
448
|
+
*/
|
|
311
449
|
tags?: string[];
|
|
312
450
|
};
|
|
313
451
|
export interface ListDeploymentsResponse {
|
|
314
|
-
/**
|
|
452
|
+
/**
|
|
453
|
+
* List of deployments on the current page.
|
|
454
|
+
*/
|
|
315
455
|
deployments: Deployment[];
|
|
316
|
-
/**
|
|
456
|
+
/**
|
|
457
|
+
* Total number of deployments.
|
|
458
|
+
*/
|
|
317
459
|
totalCount: number;
|
|
318
460
|
}
|
|
319
461
|
export type ListModelsRequest = {
|
|
320
462
|
/**
|
|
321
|
-
* Region to target. If none is passed will use default region from the
|
|
322
|
-
* config.
|
|
463
|
+
* Region to target. If none is passed will use default region from the config.
|
|
323
464
|
*/
|
|
324
465
|
region?: ScwRegion;
|
|
325
|
-
/**
|
|
466
|
+
/**
|
|
467
|
+
* Order in which to return results.
|
|
468
|
+
*/
|
|
326
469
|
orderBy?: ListModelsRequestOrderBy;
|
|
327
|
-
/**
|
|
470
|
+
/**
|
|
471
|
+
* Page number to return.
|
|
472
|
+
*/
|
|
328
473
|
page?: number;
|
|
329
|
-
/**
|
|
474
|
+
/**
|
|
475
|
+
* Maximum number of models to return per page.
|
|
476
|
+
*/
|
|
330
477
|
pageSize?: number;
|
|
331
|
-
/**
|
|
478
|
+
/**
|
|
479
|
+
* Filter by Project ID.
|
|
480
|
+
*/
|
|
332
481
|
projectId?: string;
|
|
333
|
-
/**
|
|
482
|
+
/**
|
|
483
|
+
* Filter by model name.
|
|
484
|
+
*/
|
|
334
485
|
name?: string;
|
|
335
|
-
/**
|
|
486
|
+
/**
|
|
487
|
+
* Filter by tags.
|
|
488
|
+
*/
|
|
336
489
|
tags?: string[];
|
|
337
490
|
};
|
|
338
491
|
export interface ListModelsResponse {
|
|
339
|
-
/**
|
|
492
|
+
/**
|
|
493
|
+
* List of models on the current page.
|
|
494
|
+
*/
|
|
340
495
|
models: Model[];
|
|
341
|
-
/**
|
|
496
|
+
/**
|
|
497
|
+
* Total number of models.
|
|
498
|
+
*/
|
|
342
499
|
totalCount: number;
|
|
343
500
|
}
|
|
344
501
|
export type ListNodeTypesRequest = {
|
|
345
502
|
/**
|
|
346
|
-
* Region to target. If none is passed will use default region from the
|
|
347
|
-
* config.
|
|
503
|
+
* Region to target. If none is passed will use default region from the config.
|
|
348
504
|
*/
|
|
349
505
|
region?: ScwRegion;
|
|
350
|
-
/**
|
|
506
|
+
/**
|
|
507
|
+
* Page number to return.
|
|
508
|
+
*/
|
|
351
509
|
page?: number;
|
|
352
|
-
/**
|
|
510
|
+
/**
|
|
511
|
+
* Maximum number of node types to return per page.
|
|
512
|
+
*/
|
|
353
513
|
pageSize?: number;
|
|
354
|
-
/**
|
|
514
|
+
/**
|
|
515
|
+
* Include disabled node types in the response.
|
|
516
|
+
*/
|
|
355
517
|
includeDisabledTypes: boolean;
|
|
356
518
|
};
|
|
357
519
|
export interface ListNodeTypesResponse {
|
|
358
|
-
/**
|
|
520
|
+
/**
|
|
521
|
+
* List of node types.
|
|
522
|
+
*/
|
|
359
523
|
nodeTypes: NodeType[];
|
|
360
|
-
/**
|
|
524
|
+
/**
|
|
525
|
+
* Total number of node types.
|
|
526
|
+
*/
|
|
361
527
|
totalCount: number;
|
|
362
528
|
}
|
|
363
529
|
export type UpdateDeploymentRequest = {
|
|
364
530
|
/**
|
|
365
|
-
* Region to target. If none is passed will use default region from the
|
|
366
|
-
* config.
|
|
531
|
+
* Region to target. If none is passed will use default region from the config.
|
|
367
532
|
*/
|
|
368
533
|
region?: ScwRegion;
|
|
369
|
-
/**
|
|
534
|
+
/**
|
|
535
|
+
* ID of the deployment to update.
|
|
536
|
+
*/
|
|
370
537
|
deploymentId: string;
|
|
371
|
-
/**
|
|
538
|
+
/**
|
|
539
|
+
* Name of the deployment.
|
|
540
|
+
*/
|
|
372
541
|
name?: string;
|
|
373
|
-
/**
|
|
542
|
+
/**
|
|
543
|
+
* List of tags to apply to the deployment.
|
|
544
|
+
*/
|
|
374
545
|
tags?: string[];
|
|
375
|
-
/**
|
|
546
|
+
/**
|
|
547
|
+
* Defines the new minimum size of the pool.
|
|
548
|
+
*/
|
|
376
549
|
minSize?: number;
|
|
377
|
-
/**
|
|
550
|
+
/**
|
|
551
|
+
* Defines the new maximum size of the pool.
|
|
552
|
+
*/
|
|
378
553
|
maxSize?: number;
|
|
379
|
-
/**
|
|
554
|
+
/**
|
|
555
|
+
* Id of the model to set to the deployment.
|
|
556
|
+
*/
|
|
380
557
|
modelId?: string;
|
|
381
|
-
/**
|
|
558
|
+
/**
|
|
559
|
+
* Quantization to use to the deployment.
|
|
560
|
+
*/
|
|
382
561
|
quantization?: DeploymentQuantization;
|
|
383
562
|
};
|
|
384
563
|
export type UpdateEndpointRequest = {
|
|
385
564
|
/**
|
|
386
|
-
* Region to target. If none is passed will use default region from the
|
|
387
|
-
* config.
|
|
565
|
+
* Region to target. If none is passed will use default region from the config.
|
|
388
566
|
*/
|
|
389
567
|
region?: ScwRegion;
|
|
390
|
-
/**
|
|
568
|
+
/**
|
|
569
|
+
* ID of the endpoint to update.
|
|
570
|
+
*/
|
|
391
571
|
endpointId: string;
|
|
392
572
|
/**
|
|
393
|
-
* By default, deployments are protected by IAM authentication.
|
|
394
|
-
|
|
573
|
+
* By default, deployments are protected by IAM authentication.
|
|
574
|
+
When setting this field to true, the authentication will be disabled.
|
|
395
575
|
*/
|
|
396
576
|
disableAuth?: boolean;
|
|
397
577
|
};
|