@scaleway/sdk-inference 2.2.2 → 2.3.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/README.md +1 -1
- package/dist/_virtual/_rolldown/runtime.js +11 -0
- package/dist/index.gen.js +3 -6
- package/dist/v1/api.gen.js +188 -271
- package/dist/v1/content.gen.js +8 -12
- package/dist/v1/index.gen.js +21 -19
- package/dist/v1/marshalling.gen.js +143 -224
- package/dist/v1/validation-rules.gen.js +54 -62
- package/dist/v1beta1/api.gen.js +208 -300
- package/dist/v1beta1/content.gen.js +6 -7
- package/dist/v1beta1/index.gen.js +25 -23
- package/dist/v1beta1/marshalling.gen.js +144 -240
- package/dist/v1beta1/validation-rules.gen.js +50 -52
- package/package.json +4 -4
|
@@ -1,254 +1,173 @@
|
|
|
1
|
+
import { isJSONObject, resolveOneOf, unmarshalArrayOfObject, unmarshalDate } from "@scaleway/sdk-client";
|
|
1
2
|
import randomName from "@scaleway/random-name";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
throw new TypeError(
|
|
6
|
-
`Unmarshalling the type 'EndpointPrivateNetworkDetails' failed as data isn't a dictionary.`
|
|
7
|
-
);
|
|
8
|
-
}
|
|
9
|
-
return {
|
|
10
|
-
privateNetworkId: data.private_network_id
|
|
11
|
-
};
|
|
3
|
+
var unmarshalEndpointPrivateNetworkDetails = (data) => {
|
|
4
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'EndpointPrivateNetworkDetails' failed as data isn't a dictionary.`);
|
|
5
|
+
return { privateNetworkId: data.private_network_id };
|
|
12
6
|
};
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
`Unmarshalling the type 'EndpointPublicNetworkDetails' failed as data isn't a dictionary.`
|
|
17
|
-
);
|
|
18
|
-
}
|
|
19
|
-
return {};
|
|
7
|
+
var unmarshalEndpointPublicNetworkDetails = (data) => {
|
|
8
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'EndpointPublicNetworkDetails' failed as data isn't a dictionary.`);
|
|
9
|
+
return {};
|
|
20
10
|
};
|
|
21
11
|
const unmarshalEndpoint = (data) => {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
privateNetwork: data.private_network ? unmarshalEndpointPrivateNetworkDetails(data.private_network) : void 0,
|
|
31
|
-
publicNetwork: data.public_network ? unmarshalEndpointPublicNetworkDetails(data.public_network) : void 0,
|
|
32
|
-
url: data.url
|
|
33
|
-
};
|
|
12
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Endpoint' failed as data isn't a dictionary.`);
|
|
13
|
+
return {
|
|
14
|
+
disableAuth: data.disable_auth,
|
|
15
|
+
id: data.id,
|
|
16
|
+
privateNetwork: data.private_network ? unmarshalEndpointPrivateNetworkDetails(data.private_network) : void 0,
|
|
17
|
+
publicNetwork: data.public_network ? unmarshalEndpointPublicNetworkDetails(data.public_network) : void 0,
|
|
18
|
+
url: data.url
|
|
19
|
+
};
|
|
34
20
|
};
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
`Unmarshalling the type 'DeploymentQuantization' failed as data isn't a dictionary.`
|
|
39
|
-
);
|
|
40
|
-
}
|
|
41
|
-
return {
|
|
42
|
-
bits: data.bits
|
|
43
|
-
};
|
|
21
|
+
var unmarshalDeploymentQuantization = (data) => {
|
|
22
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'DeploymentQuantization' failed as data isn't a dictionary.`);
|
|
23
|
+
return { bits: data.bits };
|
|
44
24
|
};
|
|
45
25
|
const unmarshalDeployment = (data) => {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
status: data.status,
|
|
67
|
-
tags: data.tags,
|
|
68
|
-
updatedAt: unmarshalDate(data.updated_at)
|
|
69
|
-
};
|
|
26
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Deployment' failed as data isn't a dictionary.`);
|
|
27
|
+
return {
|
|
28
|
+
createdAt: unmarshalDate(data.created_at),
|
|
29
|
+
endpoints: unmarshalArrayOfObject(data.endpoints, unmarshalEndpoint),
|
|
30
|
+
errorMessage: data.error_message,
|
|
31
|
+
id: data.id,
|
|
32
|
+
maxSize: data.max_size,
|
|
33
|
+
minSize: data.min_size,
|
|
34
|
+
modelId: data.model_id,
|
|
35
|
+
modelName: data.model_name,
|
|
36
|
+
name: data.name,
|
|
37
|
+
nodeTypeName: data.node_type_name,
|
|
38
|
+
projectId: data.project_id,
|
|
39
|
+
quantization: data.quantization ? unmarshalDeploymentQuantization(data.quantization) : void 0,
|
|
40
|
+
region: data.region,
|
|
41
|
+
size: data.size,
|
|
42
|
+
status: data.status,
|
|
43
|
+
tags: data.tags,
|
|
44
|
+
updatedAt: unmarshalDate(data.updated_at)
|
|
45
|
+
};
|
|
70
46
|
};
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
allowed: data.allowed,
|
|
79
|
-
maxContextSize: data.max_context_size,
|
|
80
|
-
quantizationBits: data.quantization_bits
|
|
81
|
-
};
|
|
47
|
+
var unmarshalModelSupportedQuantization = (data) => {
|
|
48
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ModelSupportedQuantization' failed as data isn't a dictionary.`);
|
|
49
|
+
return {
|
|
50
|
+
allowed: data.allowed,
|
|
51
|
+
maxContextSize: data.max_context_size,
|
|
52
|
+
quantizationBits: data.quantization_bits
|
|
53
|
+
};
|
|
82
54
|
};
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
return {
|
|
90
|
-
nodeTypeName: data.node_type_name,
|
|
91
|
-
quantizations: unmarshalArrayOfObject(data.quantizations, unmarshalModelSupportedQuantization)
|
|
92
|
-
};
|
|
55
|
+
var unmarshalModelSupportedNode = (data) => {
|
|
56
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ModelSupportedNode' failed as data isn't a dictionary.`);
|
|
57
|
+
return {
|
|
58
|
+
nodeTypeName: data.node_type_name,
|
|
59
|
+
quantizations: unmarshalArrayOfObject(data.quantizations, unmarshalModelSupportedQuantization)
|
|
60
|
+
};
|
|
93
61
|
};
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
`Unmarshalling the type 'ModelSupportInfo' failed as data isn't a dictionary.`
|
|
98
|
-
);
|
|
99
|
-
}
|
|
100
|
-
return {
|
|
101
|
-
nodes: unmarshalArrayOfObject(data.nodes, unmarshalModelSupportedNode)
|
|
102
|
-
};
|
|
62
|
+
var unmarshalModelSupportInfo = (data) => {
|
|
63
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ModelSupportInfo' failed as data isn't a dictionary.`);
|
|
64
|
+
return { nodes: unmarshalArrayOfObject(data.nodes, unmarshalModelSupportedNode) };
|
|
103
65
|
};
|
|
104
66
|
const unmarshalModel = (data) => {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
status: data.status,
|
|
123
|
-
tags: data.tags,
|
|
124
|
-
updatedAt: unmarshalDate(data.updated_at)
|
|
125
|
-
};
|
|
67
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Model' failed as data isn't a dictionary.`);
|
|
68
|
+
return {
|
|
69
|
+
createdAt: unmarshalDate(data.created_at),
|
|
70
|
+
description: data.description,
|
|
71
|
+
errorMessage: data.error_message,
|
|
72
|
+
hasEula: data.has_eula,
|
|
73
|
+
id: data.id,
|
|
74
|
+
name: data.name,
|
|
75
|
+
nodesSupport: unmarshalArrayOfObject(data.nodes_support, unmarshalModelSupportInfo),
|
|
76
|
+
parameterSizeBits: data.parameter_size_bits,
|
|
77
|
+
projectId: data.project_id,
|
|
78
|
+
region: data.region,
|
|
79
|
+
sizeBytes: data.size_bytes,
|
|
80
|
+
status: data.status,
|
|
81
|
+
tags: data.tags,
|
|
82
|
+
updatedAt: unmarshalDate(data.updated_at)
|
|
83
|
+
};
|
|
126
84
|
};
|
|
127
85
|
const unmarshalListDeploymentsResponse = (data) => {
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
return {
|
|
134
|
-
deployments: unmarshalArrayOfObject(data.deployments, unmarshalDeployment),
|
|
135
|
-
totalCount: data.total_count
|
|
136
|
-
};
|
|
86
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListDeploymentsResponse' failed as data isn't a dictionary.`);
|
|
87
|
+
return {
|
|
88
|
+
deployments: unmarshalArrayOfObject(data.deployments, unmarshalDeployment),
|
|
89
|
+
totalCount: data.total_count
|
|
90
|
+
};
|
|
137
91
|
};
|
|
138
92
|
const unmarshalListModelsResponse = (data) => {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
return {
|
|
145
|
-
models: unmarshalArrayOfObject(data.models, unmarshalModel),
|
|
146
|
-
totalCount: data.total_count
|
|
147
|
-
};
|
|
93
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListModelsResponse' failed as data isn't a dictionary.`);
|
|
94
|
+
return {
|
|
95
|
+
models: unmarshalArrayOfObject(data.models, unmarshalModel),
|
|
96
|
+
totalCount: data.total_count
|
|
97
|
+
};
|
|
148
98
|
};
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
updatedAt: unmarshalDate(data.updated_at),
|
|
166
|
-
vcpus: data.vcpus,
|
|
167
|
-
vram: data.vram
|
|
168
|
-
};
|
|
99
|
+
var unmarshalNodeType = (data) => {
|
|
100
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'NodeType' failed as data isn't a dictionary.`);
|
|
101
|
+
return {
|
|
102
|
+
beta: data.beta,
|
|
103
|
+
createdAt: unmarshalDate(data.created_at),
|
|
104
|
+
description: data.description,
|
|
105
|
+
disabled: data.disabled,
|
|
106
|
+
gpus: data.gpus,
|
|
107
|
+
memory: data.memory,
|
|
108
|
+
name: data.name,
|
|
109
|
+
region: data.region,
|
|
110
|
+
stockStatus: data.stock_status,
|
|
111
|
+
updatedAt: unmarshalDate(data.updated_at),
|
|
112
|
+
vcpus: data.vcpus,
|
|
113
|
+
vram: data.vram
|
|
114
|
+
};
|
|
169
115
|
};
|
|
170
116
|
const unmarshalListNodeTypesResponse = (data) => {
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
return {
|
|
177
|
-
nodeTypes: unmarshalArrayOfObject(data.node_types, unmarshalNodeType),
|
|
178
|
-
totalCount: data.total_count
|
|
179
|
-
};
|
|
117
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListNodeTypesResponse' failed as data isn't a dictionary.`);
|
|
118
|
+
return {
|
|
119
|
+
nodeTypes: unmarshalArrayOfObject(data.node_types, unmarshalNodeType),
|
|
120
|
+
totalCount: data.total_count
|
|
121
|
+
};
|
|
180
122
|
};
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
});
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
value: request.publicNetwork !== void 0 ? marshalEndpointPublicNetworkDetails(request.publicNetwork) : void 0
|
|
194
|
-
},
|
|
195
|
-
{
|
|
196
|
-
param: "private_network",
|
|
197
|
-
value: request.privateNetwork !== void 0 ? marshalEndpointPrivateNetworkDetails(request.privateNetwork) : void 0
|
|
198
|
-
}
|
|
199
|
-
])
|
|
123
|
+
var marshalEndpointPrivateNetworkDetails = (request, defaults) => ({ private_network_id: request.privateNetworkId });
|
|
124
|
+
var marshalEndpointPublicNetworkDetails = (request, defaults) => ({});
|
|
125
|
+
var marshalDeploymentQuantization = (request, defaults) => ({ bits: request.bits });
|
|
126
|
+
var marshalEndpointSpec = (request, defaults) => ({
|
|
127
|
+
disable_auth: request.disableAuth,
|
|
128
|
+
...resolveOneOf([{
|
|
129
|
+
param: "public_network",
|
|
130
|
+
value: request.publicNetwork !== void 0 ? marshalEndpointPublicNetworkDetails(request.publicNetwork, defaults) : void 0
|
|
131
|
+
}, {
|
|
132
|
+
param: "private_network",
|
|
133
|
+
value: request.privateNetwork !== void 0 ? marshalEndpointPrivateNetworkDetails(request.privateNetwork, defaults) : void 0
|
|
134
|
+
}])
|
|
200
135
|
});
|
|
201
136
|
const marshalCreateDeploymentRequest = (request, defaults) => ({
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
137
|
+
accept_eula: request.acceptEula,
|
|
138
|
+
endpoints: request.endpoints.map((elt) => marshalEndpointSpec(elt, defaults)),
|
|
139
|
+
max_size: request.maxSize,
|
|
140
|
+
min_size: request.minSize,
|
|
141
|
+
model_id: request.modelId,
|
|
142
|
+
name: request.name || randomName("inference"),
|
|
143
|
+
node_type_name: request.nodeTypeName,
|
|
144
|
+
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
145
|
+
quantization: request.quantization !== void 0 ? marshalDeploymentQuantization(request.quantization, defaults) : void 0,
|
|
146
|
+
tags: request.tags
|
|
212
147
|
});
|
|
213
148
|
const marshalCreateEndpointRequest = (request, defaults) => ({
|
|
214
|
-
|
|
215
|
-
|
|
149
|
+
deployment_id: request.deploymentId,
|
|
150
|
+
endpoint: marshalEndpointSpec(request.endpoint, defaults)
|
|
216
151
|
});
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
}
|
|
224
|
-
])
|
|
152
|
+
var marshalModelSource = (request, defaults) => ({
|
|
153
|
+
url: request.url,
|
|
154
|
+
...resolveOneOf([{
|
|
155
|
+
param: "secret",
|
|
156
|
+
value: request.secret
|
|
157
|
+
}])
|
|
225
158
|
});
|
|
226
159
|
const marshalCreateModelRequest = (request, defaults) => ({
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
160
|
+
name: request.name || randomName("model"),
|
|
161
|
+
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
162
|
+
source: marshalModelSource(request.source, defaults)
|
|
230
163
|
});
|
|
231
164
|
const marshalUpdateDeploymentRequest = (request, defaults) => ({
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
165
|
+
max_size: request.maxSize,
|
|
166
|
+
min_size: request.minSize,
|
|
167
|
+
model_id: request.modelId,
|
|
168
|
+
name: request.name,
|
|
169
|
+
quantization: request.quantization !== void 0 ? marshalDeploymentQuantization(request.quantization, defaults) : void 0,
|
|
170
|
+
tags: request.tags
|
|
238
171
|
});
|
|
239
|
-
const marshalUpdateEndpointRequest = (request, defaults) => ({
|
|
240
|
-
|
|
241
|
-
});
|
|
242
|
-
export {
|
|
243
|
-
marshalCreateDeploymentRequest,
|
|
244
|
-
marshalCreateEndpointRequest,
|
|
245
|
-
marshalCreateModelRequest,
|
|
246
|
-
marshalUpdateDeploymentRequest,
|
|
247
|
-
marshalUpdateEndpointRequest,
|
|
248
|
-
unmarshalDeployment,
|
|
249
|
-
unmarshalEndpoint,
|
|
250
|
-
unmarshalListDeploymentsResponse,
|
|
251
|
-
unmarshalListModelsResponse,
|
|
252
|
-
unmarshalListNodeTypesResponse,
|
|
253
|
-
unmarshalModel
|
|
254
|
-
};
|
|
172
|
+
const marshalUpdateEndpointRequest = (request, defaults) => ({ disable_auth: request.disableAuth });
|
|
173
|
+
export { marshalCreateDeploymentRequest, marshalCreateEndpointRequest, marshalCreateModelRequest, marshalUpdateDeploymentRequest, marshalUpdateEndpointRequest, unmarshalDeployment, unmarshalEndpoint, unmarshalListDeploymentsResponse, unmarshalListModelsResponse, unmarshalListNodeTypesResponse, unmarshalModel };
|
|
@@ -1,66 +1,58 @@
|
|
|
1
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
var validation_rules_gen_exports = /* @__PURE__ */ __exportAll({
|
|
3
|
+
CreateDeploymentRequest: () => CreateDeploymentRequest,
|
|
4
|
+
CreateModelRequest: () => CreateModelRequest,
|
|
5
|
+
DeploymentQuantization: () => DeploymentQuantization,
|
|
6
|
+
ListDeploymentsRequest: () => ListDeploymentsRequest,
|
|
7
|
+
ListModelsRequest: () => ListModelsRequest,
|
|
8
|
+
UpdateDeploymentRequest: () => UpdateDeploymentRequest
|
|
9
|
+
});
|
|
1
10
|
const CreateDeploymentRequest = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
-
}
|
|
11
|
+
maxSize: {
|
|
12
|
+
greaterThanOrEqual: 1,
|
|
13
|
+
lessThanOrEqual: 50
|
|
14
|
+
},
|
|
15
|
+
minSize: {
|
|
16
|
+
greaterThanOrEqual: 1,
|
|
17
|
+
lessThanOrEqual: 50
|
|
18
|
+
},
|
|
19
|
+
name: {
|
|
20
|
+
maxLength: 255,
|
|
21
|
+
minLength: 1,
|
|
22
|
+
pattern: /^[A-Za-z0-9-_]+$/
|
|
23
|
+
},
|
|
24
|
+
nodeTypeName: {
|
|
25
|
+
maxLength: 64,
|
|
26
|
+
minLength: 1
|
|
27
|
+
}
|
|
43
28
|
};
|
|
29
|
+
const CreateModelRequest = { name: {
|
|
30
|
+
maxLength: 255,
|
|
31
|
+
minLength: 1,
|
|
32
|
+
pattern: /^[A-Za-z0-9-_/.:]+$/
|
|
33
|
+
} };
|
|
34
|
+
const DeploymentQuantization = { bits: { lessThanOrEqual: 32 } };
|
|
35
|
+
const ListDeploymentsRequest = { name: {
|
|
36
|
+
maxLength: 255,
|
|
37
|
+
minLength: 1
|
|
38
|
+
} };
|
|
39
|
+
const ListModelsRequest = { name: {
|
|
40
|
+
maxLength: 255,
|
|
41
|
+
minLength: 1
|
|
42
|
+
} };
|
|
44
43
|
const UpdateDeploymentRequest = {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
};
|
|
59
|
-
export {
|
|
60
|
-
CreateDeploymentRequest,
|
|
61
|
-
CreateModelRequest,
|
|
62
|
-
DeploymentQuantization,
|
|
63
|
-
ListDeploymentsRequest,
|
|
64
|
-
ListModelsRequest,
|
|
65
|
-
UpdateDeploymentRequest
|
|
44
|
+
maxSize: {
|
|
45
|
+
greaterThanOrEqual: 1,
|
|
46
|
+
lessThanOrEqual: 50
|
|
47
|
+
},
|
|
48
|
+
minSize: {
|
|
49
|
+
greaterThanOrEqual: 1,
|
|
50
|
+
lessThanOrEqual: 50
|
|
51
|
+
},
|
|
52
|
+
name: {
|
|
53
|
+
maxLength: 255,
|
|
54
|
+
minLength: 1,
|
|
55
|
+
pattern: /^[A-Za-z0-9-_]+$/
|
|
56
|
+
}
|
|
66
57
|
};
|
|
58
|
+
export { validation_rules_gen_exports };
|