@scaleway/sdk-inference 2.2.1 → 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 CHANGED
@@ -83,6 +83,7 @@ const api = new Inference.v1.API(client)
83
83
  ## Support
84
84
 
85
85
  We love feedback! Feel free to reach us on:
86
+
86
87
  - [Scaleway Slack community](https://slack.scaleway.com/) - Join us on [#opensource](https://scaleway-community.slack.com/app_redirect?channel=opensource)
87
88
  - [GitHub Issues](https://github.com/scaleway/scaleway-sdk-js/issues)
88
89
 
@@ -93,4 +94,3 @@ This repository is at its early stage and is still in active development. If you
93
94
  ## License
94
95
 
95
96
  This project is Apache 2.0 licensed. See the [LICENSE](https://github.com/scaleway/scaleway-sdk-js/blob/master/LICENSE) file for details.
96
-
@@ -0,0 +1,11 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __exportAll = (all, no_symbols) => {
3
+ let target = {};
4
+ for (var name in all) __defProp(target, name, {
5
+ get: all[name],
6
+ enumerable: true
7
+ });
8
+ if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
9
+ return target;
10
+ };
11
+ export { __exportAll };
package/dist/index.gen.js CHANGED
@@ -1,6 +1,3 @@
1
- import * as index_gen from "./v1/index.gen.js";
2
- import * as index_gen$1 from "./v1beta1/index.gen.js";
3
- export {
4
- index_gen as Inferencev1,
5
- index_gen$1 as Inferencev1beta1
6
- };
1
+ import { index_gen_exports } from "./v1/index.gen.js";
2
+ import { index_gen_exports as index_gen_exports$1 } from "./v1beta1/index.gen.js";
3
+ export { index_gen_exports as Inferencev1, index_gen_exports$1 as Inferencev1beta1 };
@@ -1,276 +1,190 @@
1
- import { API as API$1, toApiLocality, urlParams, validatePathParam, enrichForPagination, waitForResource } from "@scaleway/sdk-client";
2
1
  import { DEPLOYMENT_TRANSIENT_STATUSES, MODEL_TRANSIENT_STATUSES } from "./content.gen.js";
3
- import { unmarshalListDeploymentsResponse, unmarshalDeployment, marshalCreateDeploymentRequest, marshalUpdateDeploymentRequest, marshalCreateEndpointRequest, unmarshalEndpoint, marshalUpdateEndpointRequest, unmarshalListModelsResponse, unmarshalModel, marshalCreateModelRequest, unmarshalListNodeTypesResponse } from "./marshalling.gen.js";
4
- const jsonContentHeaders = {
5
- "Content-Type": "application/json; charset=utf-8"
6
- };
7
- class API extends API$1 {
8
- /**
9
- * Locality of this API.
10
- * type ∈ {'zone','region','global','unspecified'}
11
- */
12
- static LOCALITY = toApiLocality({
13
- regions: ["fr-par"]
14
- });
15
- pageOfListDeployments = (request = {}) => this.client.fetch(
16
- {
17
- method: "GET",
18
- path: `/inference/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/deployments`,
19
- urlParams: urlParams(
20
- ["name", request.name],
21
- ["order_by", request.orderBy],
22
- ["organization_id", request.organizationId],
23
- ["page", request.page],
24
- [
25
- "page_size",
26
- request.pageSize ?? this.client.settings.defaultPageSize
27
- ],
28
- ["project_id", request.projectId],
29
- ["tags", request.tags]
30
- )
31
- },
32
- unmarshalListDeploymentsResponse
33
- );
34
- /**
35
- * List inference deployments. List all your inference deployments.
36
- *
37
- * @param request - The request {@link ListDeploymentsRequest}
38
- * @returns A Promise of ListDeploymentsResponse
39
- */
40
- listDeployments = (request = {}) => enrichForPagination("deployments", this.pageOfListDeployments, request);
41
- /**
42
- * Get a deployment. Get the deployment for the given ID.
43
- *
44
- * @param request - The request {@link GetDeploymentRequest}
45
- * @returns A Promise of Deployment
46
- */
47
- getDeployment = (request) => this.client.fetch(
48
- {
49
- method: "GET",
50
- path: `/inference/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/deployments/${validatePathParam("deploymentId", request.deploymentId)}`
51
- },
52
- unmarshalDeployment
53
- );
54
- /**
55
- * Waits for {@link Deployment} to be in a final state.
56
- *
57
- * @param request - The request {@link GetDeploymentRequest}
58
- * @param options - The waiting options
59
- * @returns A Promise of Deployment
60
- */
61
- waitForDeployment = (request, options) => waitForResource(
62
- options?.stop ?? ((res) => Promise.resolve(
63
- !DEPLOYMENT_TRANSIENT_STATUSES.includes(res.status)
64
- )),
65
- this.getDeployment,
66
- request,
67
- options
68
- );
69
- /**
70
- * Create a deployment. Create a new inference deployment related to a specific model.
71
- *
72
- * @param request - The request {@link CreateDeploymentRequest}
73
- * @returns A Promise of Deployment
74
- */
75
- createDeployment = (request) => this.client.fetch(
76
- {
77
- body: JSON.stringify(
78
- marshalCreateDeploymentRequest(request, this.client.settings)
79
- ),
80
- headers: jsonContentHeaders,
81
- method: "POST",
82
- path: `/inference/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/deployments`
83
- },
84
- unmarshalDeployment
85
- );
86
- /**
87
- * Update a deployment. Update an existing inference deployment.
88
- *
89
- * @param request - The request {@link UpdateDeploymentRequest}
90
- * @returns A Promise of Deployment
91
- */
92
- updateDeployment = (request) => this.client.fetch(
93
- {
94
- body: JSON.stringify(
95
- marshalUpdateDeploymentRequest(request, this.client.settings)
96
- ),
97
- headers: jsonContentHeaders,
98
- method: "PATCH",
99
- path: `/inference/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/deployments/${validatePathParam("deploymentId", request.deploymentId)}`
100
- },
101
- unmarshalDeployment
102
- );
103
- /**
104
- * Delete a deployment. Delete an existing inference deployment.
105
- *
106
- * @param request - The request {@link DeleteDeploymentRequest}
107
- * @returns A Promise of Deployment
108
- */
109
- deleteDeployment = (request) => this.client.fetch(
110
- {
111
- method: "DELETE",
112
- path: `/inference/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/deployments/${validatePathParam("deploymentId", request.deploymentId)}`
113
- },
114
- unmarshalDeployment
115
- );
116
- /**
117
- * Get the CA certificate. Get the CA certificate used for the deployment of private endpoints.
118
- The CA certificate will be returned as a PEM file.
119
- *
120
- * @param request - The request {@link GetDeploymentCertificateRequest}
121
- * @returns A Promise of Blob
122
- */
123
- getDeploymentCertificate = (request) => this.client.fetch({
124
- method: "GET",
125
- path: `/inference/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/deployments/${validatePathParam("deploymentId", request.deploymentId)}/certificate`,
126
- urlParams: urlParams(["dl", 1]),
127
- responseType: "blob"
128
- });
129
- /**
130
- * Create an endpoint. Create a new Endpoint related to a specific deployment.
131
- *
132
- * @param request - The request {@link CreateEndpointRequest}
133
- * @returns A Promise of Endpoint
134
- */
135
- createEndpoint = (request) => this.client.fetch(
136
- {
137
- body: JSON.stringify(
138
- marshalCreateEndpointRequest(request, this.client.settings)
139
- ),
140
- headers: jsonContentHeaders,
141
- method: "POST",
142
- path: `/inference/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/endpoints`
143
- },
144
- unmarshalEndpoint
145
- );
146
- /**
147
- * Update an endpoint. Update an existing Endpoint.
148
- *
149
- * @param request - The request {@link UpdateEndpointRequest}
150
- * @returns A Promise of Endpoint
151
- */
152
- updateEndpoint = (request) => this.client.fetch(
153
- {
154
- body: JSON.stringify(
155
- marshalUpdateEndpointRequest(request, this.client.settings)
156
- ),
157
- headers: jsonContentHeaders,
158
- method: "PATCH",
159
- path: `/inference/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/endpoints/${validatePathParam("endpointId", request.endpointId)}`
160
- },
161
- unmarshalEndpoint
162
- );
163
- /**
164
- * Delete an endpoint. Delete an existing Endpoint.
165
- *
166
- * @param request - The request {@link DeleteEndpointRequest}
167
- */
168
- deleteEndpoint = (request) => this.client.fetch({
169
- method: "DELETE",
170
- path: `/inference/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/endpoints/${validatePathParam("endpointId", request.endpointId)}`
171
- });
172
- pageOfListModels = (request = {}) => this.client.fetch(
173
- {
174
- method: "GET",
175
- path: `/inference/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/models`,
176
- urlParams: urlParams(
177
- ["name", request.name],
178
- ["order_by", request.orderBy],
179
- ["page", request.page],
180
- [
181
- "page_size",
182
- request.pageSize ?? this.client.settings.defaultPageSize
183
- ],
184
- ["project_id", request.projectId],
185
- ["tags", request.tags]
186
- )
187
- },
188
- unmarshalListModelsResponse
189
- );
190
- /**
191
- * List models. List all available models.
192
- *
193
- * @param request - The request {@link ListModelsRequest}
194
- * @returns A Promise of ListModelsResponse
195
- */
196
- listModels = (request = {}) => enrichForPagination("models", this.pageOfListModels, request);
197
- /**
198
- * Get a model. Get the model for the given ID.
199
- *
200
- * @param request - The request {@link GetModelRequest}
201
- * @returns A Promise of Model
202
- */
203
- getModel = (request) => this.client.fetch(
204
- {
205
- method: "GET",
206
- path: `/inference/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/models/${validatePathParam("modelId", request.modelId)}`
207
- },
208
- unmarshalModel
209
- );
210
- /**
211
- * Waits for {@link Model} to be in a final state.
212
- *
213
- * @param request - The request {@link GetModelRequest}
214
- * @param options - The waiting options
215
- * @returns A Promise of Model
216
- */
217
- waitForModel = (request, options) => waitForResource(
218
- options?.stop ?? ((res) => Promise.resolve(
219
- !MODEL_TRANSIENT_STATUSES.includes(res.status)
220
- )),
221
- this.getModel,
222
- request,
223
- options
224
- );
225
- /**
226
- * Import a model. Import a new model to your model library.
227
- *
228
- * @param request - The request {@link CreateModelRequest}
229
- * @returns A Promise of Model
230
- */
231
- createModel = (request) => this.client.fetch(
232
- {
233
- body: JSON.stringify(
234
- marshalCreateModelRequest(request, this.client.settings)
235
- ),
236
- headers: jsonContentHeaders,
237
- method: "POST",
238
- path: `/inference/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/models`
239
- },
240
- unmarshalModel
241
- );
242
- /**
243
- * Delete a model. Delete an existing model from your model library.
244
- *
245
- * @param request - The request {@link DeleteModelRequest}
246
- */
247
- deleteModel = (request) => this.client.fetch({
248
- method: "DELETE",
249
- path: `/inference/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/models/${validatePathParam("modelId", request.modelId)}`
250
- });
251
- pageOfListNodeTypes = (request) => this.client.fetch(
252
- {
253
- method: "GET",
254
- path: `/inference/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/node-types`,
255
- urlParams: urlParams(
256
- ["include_disabled_types", request.includeDisabledTypes],
257
- ["page", request.page],
258
- [
259
- "page_size",
260
- request.pageSize ?? this.client.settings.defaultPageSize
261
- ]
262
- )
263
- },
264
- unmarshalListNodeTypesResponse
265
- );
266
- /**
267
- * List available node types. List all available node types. By default, the node types returned in the list are ordered by creation date in ascending order, though this can be modified via the `order_by` field.
268
- *
269
- * @param request - The request {@link ListNodeTypesRequest}
270
- * @returns A Promise of ListNodeTypesResponse
271
- */
272
- listNodeTypes = (request) => enrichForPagination("nodeTypes", this.pageOfListNodeTypes, request);
273
- }
274
- export {
275
- API
2
+ import { marshalCreateDeploymentRequest, marshalCreateEndpointRequest, marshalCreateModelRequest, marshalUpdateDeploymentRequest, marshalUpdateEndpointRequest, unmarshalDeployment, unmarshalEndpoint, unmarshalListDeploymentsResponse, unmarshalListModelsResponse, unmarshalListNodeTypesResponse, unmarshalModel } from "./marshalling.gen.js";
3
+ import { API, enrichForPagination, toApiLocality, urlParams, validatePathParam, waitForResource } from "@scaleway/sdk-client";
4
+ var jsonContentHeaders = { "Content-Type": "application/json; charset=utf-8" };
5
+ /**
6
+ * Managed Inference API.
7
+
8
+ This API allows you to handle your Managed Inference services.
9
+ */
10
+ var API$1 = class extends API {
11
+ /**
12
+ * Locality of this API.
13
+ * type ∈ {'zone','region','global','unspecified'}
14
+ */
15
+ static LOCALITY = toApiLocality({ regions: ["fr-par"] });
16
+ pageOfListDeployments = (request = {}) => this.client.fetch({
17
+ method: "GET",
18
+ path: `/inference/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/deployments`,
19
+ urlParams: urlParams(["name", request.name], ["order_by", request.orderBy], ["organization_id", request.organizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["project_id", request.projectId], ["tags", request.tags])
20
+ }, unmarshalListDeploymentsResponse);
21
+ /**
22
+ * List inference deployments. List all your inference deployments.
23
+ *
24
+ * @param request - The request {@link ListDeploymentsRequest}
25
+ * @returns A Promise of ListDeploymentsResponse
26
+ */
27
+ listDeployments = (request = {}) => enrichForPagination("deployments", this.pageOfListDeployments, request);
28
+ /**
29
+ * Get a deployment. Get the deployment for the given ID.
30
+ *
31
+ * @param request - The request {@link GetDeploymentRequest}
32
+ * @returns A Promise of Deployment
33
+ */
34
+ getDeployment = (request) => this.client.fetch({
35
+ method: "GET",
36
+ path: `/inference/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/deployments/${validatePathParam("deploymentId", request.deploymentId)}`
37
+ }, unmarshalDeployment);
38
+ /**
39
+ * Waits for {@link Deployment} to be in a final state.
40
+ *
41
+ * @param request - The request {@link GetDeploymentRequest}
42
+ * @param options - The waiting options
43
+ * @returns A Promise of Deployment
44
+ */
45
+ waitForDeployment = (request, options) => waitForResource(options?.stop ?? ((res) => Promise.resolve(!DEPLOYMENT_TRANSIENT_STATUSES.includes(res.status))), this.getDeployment, request, options);
46
+ /**
47
+ * Create a deployment. Create a new inference deployment related to a specific model.
48
+ *
49
+ * @param request - The request {@link CreateDeploymentRequest}
50
+ * @returns A Promise of Deployment
51
+ */
52
+ createDeployment = (request) => this.client.fetch({
53
+ body: JSON.stringify(marshalCreateDeploymentRequest(request, this.client.settings)),
54
+ headers: jsonContentHeaders,
55
+ method: "POST",
56
+ path: `/inference/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/deployments`
57
+ }, unmarshalDeployment);
58
+ /**
59
+ * Update a deployment. Update an existing inference deployment.
60
+ *
61
+ * @param request - The request {@link UpdateDeploymentRequest}
62
+ * @returns A Promise of Deployment
63
+ */
64
+ updateDeployment = (request) => this.client.fetch({
65
+ body: JSON.stringify(marshalUpdateDeploymentRequest(request, this.client.settings)),
66
+ headers: jsonContentHeaders,
67
+ method: "PATCH",
68
+ path: `/inference/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/deployments/${validatePathParam("deploymentId", request.deploymentId)}`
69
+ }, unmarshalDeployment);
70
+ /**
71
+ * Delete a deployment. Delete an existing inference deployment.
72
+ *
73
+ * @param request - The request {@link DeleteDeploymentRequest}
74
+ * @returns A Promise of Deployment
75
+ */
76
+ deleteDeployment = (request) => this.client.fetch({
77
+ method: "DELETE",
78
+ path: `/inference/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/deployments/${validatePathParam("deploymentId", request.deploymentId)}`
79
+ }, unmarshalDeployment);
80
+ /**
81
+ * Get the CA certificate. Get the CA certificate used for the deployment of private endpoints.
82
+ The CA certificate will be returned as a PEM file.
83
+ *
84
+ * @param request - The request {@link GetDeploymentCertificateRequest}
85
+ * @returns A Promise of Blob
86
+ */
87
+ getDeploymentCertificate = (request) => this.client.fetch({
88
+ method: "GET",
89
+ path: `/inference/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/deployments/${validatePathParam("deploymentId", request.deploymentId)}/certificate`,
90
+ urlParams: urlParams(["dl", 1]),
91
+ responseType: "blob"
92
+ });
93
+ /**
94
+ * Create an endpoint. Create a new Endpoint related to a specific deployment.
95
+ *
96
+ * @param request - The request {@link CreateEndpointRequest}
97
+ * @returns A Promise of Endpoint
98
+ */
99
+ createEndpoint = (request) => this.client.fetch({
100
+ body: JSON.stringify(marshalCreateEndpointRequest(request, this.client.settings)),
101
+ headers: jsonContentHeaders,
102
+ method: "POST",
103
+ path: `/inference/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/endpoints`
104
+ }, unmarshalEndpoint);
105
+ /**
106
+ * Update an endpoint. Update an existing Endpoint.
107
+ *
108
+ * @param request - The request {@link UpdateEndpointRequest}
109
+ * @returns A Promise of Endpoint
110
+ */
111
+ updateEndpoint = (request) => this.client.fetch({
112
+ body: JSON.stringify(marshalUpdateEndpointRequest(request, this.client.settings)),
113
+ headers: jsonContentHeaders,
114
+ method: "PATCH",
115
+ path: `/inference/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/endpoints/${validatePathParam("endpointId", request.endpointId)}`
116
+ }, unmarshalEndpoint);
117
+ /**
118
+ * Delete an endpoint. Delete an existing Endpoint.
119
+ *
120
+ * @param request - The request {@link DeleteEndpointRequest}
121
+ */
122
+ deleteEndpoint = (request) => this.client.fetch({
123
+ method: "DELETE",
124
+ path: `/inference/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/endpoints/${validatePathParam("endpointId", request.endpointId)}`
125
+ });
126
+ pageOfListModels = (request = {}) => this.client.fetch({
127
+ method: "GET",
128
+ path: `/inference/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/models`,
129
+ urlParams: urlParams(["name", request.name], ["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["project_id", request.projectId], ["tags", request.tags])
130
+ }, unmarshalListModelsResponse);
131
+ /**
132
+ * List models. List all available models.
133
+ *
134
+ * @param request - The request {@link ListModelsRequest}
135
+ * @returns A Promise of ListModelsResponse
136
+ */
137
+ listModels = (request = {}) => enrichForPagination("models", this.pageOfListModels, request);
138
+ /**
139
+ * Get a model. Get the model for the given ID.
140
+ *
141
+ * @param request - The request {@link GetModelRequest}
142
+ * @returns A Promise of Model
143
+ */
144
+ getModel = (request) => this.client.fetch({
145
+ method: "GET",
146
+ path: `/inference/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/models/${validatePathParam("modelId", request.modelId)}`
147
+ }, unmarshalModel);
148
+ /**
149
+ * Waits for {@link Model} to be in a final state.
150
+ *
151
+ * @param request - The request {@link GetModelRequest}
152
+ * @param options - The waiting options
153
+ * @returns A Promise of Model
154
+ */
155
+ waitForModel = (request, options) => waitForResource(options?.stop ?? ((res) => Promise.resolve(!MODEL_TRANSIENT_STATUSES.includes(res.status))), this.getModel, request, options);
156
+ /**
157
+ * Import a model. Import a new model to your model library.
158
+ *
159
+ * @param request - The request {@link CreateModelRequest}
160
+ * @returns A Promise of Model
161
+ */
162
+ createModel = (request) => this.client.fetch({
163
+ body: JSON.stringify(marshalCreateModelRequest(request, this.client.settings)),
164
+ headers: jsonContentHeaders,
165
+ method: "POST",
166
+ path: `/inference/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/models`
167
+ }, unmarshalModel);
168
+ /**
169
+ * Delete a model. Delete an existing model from your model library.
170
+ *
171
+ * @param request - The request {@link DeleteModelRequest}
172
+ */
173
+ deleteModel = (request) => this.client.fetch({
174
+ method: "DELETE",
175
+ path: `/inference/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/models/${validatePathParam("modelId", request.modelId)}`
176
+ });
177
+ pageOfListNodeTypes = (request) => this.client.fetch({
178
+ method: "GET",
179
+ path: `/inference/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/node-types`,
180
+ urlParams: urlParams(["include_disabled_types", request.includeDisabledTypes], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize])
181
+ }, unmarshalListNodeTypesResponse);
182
+ /**
183
+ * List available node types. List all available node types. By default, the node types returned in the list are ordered by creation date in ascending order, though this can be modified via the `order_by` field.
184
+ *
185
+ * @param request - The request {@link ListNodeTypesRequest}
186
+ * @returns A Promise of ListNodeTypesResponse
187
+ */
188
+ listNodeTypes = (request) => enrichForPagination("nodeTypes", this.pageOfListNodeTypes, request);
276
189
  };
190
+ export { API$1 as API };
@@ -1,14 +1,10 @@
1
+ /** Lists transient statutes of the enum {@link DeploymentStatus}. */
1
2
  const DEPLOYMENT_TRANSIENT_STATUSES = [
2
- "creating",
3
- "deploying",
4
- "deleting",
5
- "scaling"
3
+ "creating",
4
+ "deploying",
5
+ "deleting",
6
+ "scaling"
6
7
  ];
7
- const MODEL_TRANSIENT_STATUSES = [
8
- "preparing",
9
- "downloading"
10
- ];
11
- export {
12
- DEPLOYMENT_TRANSIENT_STATUSES,
13
- MODEL_TRANSIENT_STATUSES
14
- };
8
+ /** Lists transient statutes of the enum {@link ModelStatus}. */
9
+ const MODEL_TRANSIENT_STATUSES = ["preparing", "downloading"];
10
+ export { DEPLOYMENT_TRANSIENT_STATUSES, MODEL_TRANSIENT_STATUSES };
@@ -1,4 +1,4 @@
1
- export { API } from './api.gen.js';
1
+ export { API, } from './api.gen.js';
2
2
  export * from './content.gen.js';
3
3
  export * from './marshalling.gen.js';
4
4
  export type { CreateDeploymentRequest, CreateEndpointRequest, CreateModelRequest, DeleteDeploymentRequest, DeleteEndpointRequest, DeleteModelRequest, Deployment, DeploymentQuantization, DeploymentStatus, Endpoint, EndpointPrivateNetworkDetails, EndpointPublicNetworkDetails, EndpointSpec, GetDeploymentCertificateRequest, GetDeploymentRequest, GetModelRequest, ListDeploymentsRequest, ListDeploymentsRequestOrderBy, ListDeploymentsResponse, ListModelsRequest, ListModelsRequestOrderBy, ListModelsResponse, ListNodeTypesRequest, ListNodeTypesResponse, Model, ModelSource, ModelStatus, ModelSupportedNode, ModelSupportedQuantization, ModelSupportInfo, NodeType, NodeTypeStock, UpdateDeploymentRequest, UpdateEndpointRequest, } from './types.gen.js';
@@ -1,21 +1,23 @@
1
- import { API } from "./api.gen.js";
1
+ import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
2
  import { DEPLOYMENT_TRANSIENT_STATUSES, MODEL_TRANSIENT_STATUSES } from "./content.gen.js";
3
3
  import { marshalCreateDeploymentRequest, marshalCreateEndpointRequest, marshalCreateModelRequest, marshalUpdateDeploymentRequest, marshalUpdateEndpointRequest, unmarshalDeployment, unmarshalEndpoint, unmarshalListDeploymentsResponse, unmarshalListModelsResponse, unmarshalListNodeTypesResponse, unmarshalModel } from "./marshalling.gen.js";
4
- import * as validationRules_gen from "./validation-rules.gen.js";
5
- export {
6
- API,
7
- DEPLOYMENT_TRANSIENT_STATUSES,
8
- MODEL_TRANSIENT_STATUSES,
9
- validationRules_gen as ValidationRules,
10
- marshalCreateDeploymentRequest,
11
- marshalCreateEndpointRequest,
12
- marshalCreateModelRequest,
13
- marshalUpdateDeploymentRequest,
14
- marshalUpdateEndpointRequest,
15
- unmarshalDeployment,
16
- unmarshalEndpoint,
17
- unmarshalListDeploymentsResponse,
18
- unmarshalListModelsResponse,
19
- unmarshalListNodeTypesResponse,
20
- unmarshalModel
21
- };
4
+ import { API } from "./api.gen.js";
5
+ import { validation_rules_gen_exports } from "./validation-rules.gen.js";
6
+ var index_gen_exports = /* @__PURE__ */ __exportAll({
7
+ API: () => API,
8
+ DEPLOYMENT_TRANSIENT_STATUSES: () => DEPLOYMENT_TRANSIENT_STATUSES,
9
+ MODEL_TRANSIENT_STATUSES: () => MODEL_TRANSIENT_STATUSES,
10
+ ValidationRules: () => validation_rules_gen_exports,
11
+ marshalCreateDeploymentRequest: () => marshalCreateDeploymentRequest,
12
+ marshalCreateEndpointRequest: () => marshalCreateEndpointRequest,
13
+ marshalCreateModelRequest: () => marshalCreateModelRequest,
14
+ marshalUpdateDeploymentRequest: () => marshalUpdateDeploymentRequest,
15
+ marshalUpdateEndpointRequest: () => marshalUpdateEndpointRequest,
16
+ unmarshalDeployment: () => unmarshalDeployment,
17
+ unmarshalEndpoint: () => unmarshalEndpoint,
18
+ unmarshalListDeploymentsResponse: () => unmarshalListDeploymentsResponse,
19
+ unmarshalListModelsResponse: () => unmarshalListModelsResponse,
20
+ unmarshalListNodeTypesResponse: () => unmarshalListNodeTypesResponse,
21
+ unmarshalModel: () => unmarshalModel
22
+ });
23
+ export { index_gen_exports };