@scaleway/sdk-inference 1.0.5 → 1.2.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/index.gen.d.ts +2 -2
- package/dist/v1/api.gen.d.ts +3 -3
- package/dist/v1/content.gen.cjs +2 -1
- package/dist/v1/content.gen.d.ts +1 -1
- package/dist/v1/content.gen.js +2 -1
- package/dist/v1/index.gen.cjs +0 -1
- package/dist/v1/index.gen.d.ts +5 -5
- package/dist/v1/index.gen.js +2 -3
- package/dist/v1/marshalling.gen.cjs +36 -37
- package/dist/v1/marshalling.gen.d.ts +1 -2
- package/dist/v1/marshalling.gen.js +37 -38
- package/dist/v1/types.gen.d.ts +1 -1
- package/dist/v1beta1/api.gen.d.ts +6 -6
- package/dist/v1beta1/content.gen.cjs +2 -1
- package/dist/v1beta1/content.gen.d.ts +1 -1
- package/dist/v1beta1/content.gen.js +2 -1
- package/dist/v1beta1/index.gen.d.ts +5 -5
- package/dist/v1beta1/marshalling.gen.d.ts +1 -1
- package/dist/v1beta1/types.gen.d.ts +1 -1
- package/package.json +6 -6
package/dist/index.gen.d.ts
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
* This file is automatically generated
|
|
3
3
|
* PLEASE DO NOT EDIT HERE
|
|
4
4
|
*/
|
|
5
|
-
export * as Inferencev1 from './v1/index.gen';
|
|
6
|
-
export * as Inferencev1beta1 from './v1beta1/index.gen';
|
|
5
|
+
export * as Inferencev1 from './v1/index.gen.js';
|
|
6
|
+
export * as Inferencev1beta1 from './v1beta1/index.gen.js';
|
package/dist/v1/api.gen.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { API as ParentAPI } from '@scaleway/sdk-client';
|
|
2
2
|
import type { ApiLocality, WaitForOptions } from '@scaleway/sdk-client';
|
|
3
|
-
import type { CreateDeploymentRequest, CreateEndpointRequest, CreateModelRequest, DeleteDeploymentRequest, DeleteEndpointRequest, DeleteModelRequest, Deployment, Endpoint, GetDeploymentCertificateRequest, GetDeploymentRequest, GetModelRequest, ListDeploymentsRequest, ListDeploymentsResponse, ListModelsRequest, ListModelsResponse, ListNodeTypesRequest, ListNodeTypesResponse, Model, UpdateDeploymentRequest, UpdateEndpointRequest } from './types.gen';
|
|
3
|
+
import type { CreateDeploymentRequest, CreateEndpointRequest, CreateModelRequest, DeleteDeploymentRequest, DeleteEndpointRequest, DeleteModelRequest, Deployment, Endpoint, GetDeploymentCertificateRequest, GetDeploymentRequest, GetModelRequest, ListDeploymentsRequest, ListDeploymentsResponse, ListModelsRequest, ListModelsResponse, ListNodeTypesRequest, ListNodeTypesResponse, Model, UpdateDeploymentRequest, UpdateEndpointRequest } from './types.gen.js';
|
|
4
4
|
/**
|
|
5
5
|
* Managed Inference API.
|
|
6
6
|
|
|
@@ -134,7 +134,7 @@ export declare class API extends ParentAPI {
|
|
|
134
134
|
* @returns A Promise of ListNodeTypesResponse
|
|
135
135
|
*/
|
|
136
136
|
listNodeTypes: (request: Readonly<ListNodeTypesRequest>) => Promise<ListNodeTypesResponse> & {
|
|
137
|
-
all: () => Promise<import("./types.gen").NodeType[]>;
|
|
138
|
-
[Symbol.asyncIterator]: () => AsyncGenerator<import("./types.gen").NodeType[], void, void>;
|
|
137
|
+
all: () => Promise<import("./types.gen.js").NodeType[]>;
|
|
138
|
+
[Symbol.asyncIterator]: () => AsyncGenerator<import("./types.gen.js").NodeType[], void, void>;
|
|
139
139
|
};
|
|
140
140
|
}
|
package/dist/v1/content.gen.cjs
CHANGED
package/dist/v1/content.gen.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DeploymentStatus, ModelStatus } from './types.gen';
|
|
1
|
+
import type { DeploymentStatus, ModelStatus } from './types.gen.js';
|
|
2
2
|
/** Lists transient statutes of the enum {@link DeploymentStatus}. */
|
|
3
3
|
export declare const DEPLOYMENT_TRANSIENT_STATUSES: DeploymentStatus[];
|
|
4
4
|
/** Lists transient statutes of the enum {@link ModelStatus}. */
|
package/dist/v1/content.gen.js
CHANGED
package/dist/v1/index.gen.cjs
CHANGED
|
@@ -18,5 +18,4 @@ exports.unmarshalListDeploymentsResponse = marshalling_gen.unmarshalListDeployme
|
|
|
18
18
|
exports.unmarshalListModelsResponse = marshalling_gen.unmarshalListModelsResponse;
|
|
19
19
|
exports.unmarshalListNodeTypesResponse = marshalling_gen.unmarshalListNodeTypesResponse;
|
|
20
20
|
exports.unmarshalModel = marshalling_gen.unmarshalModel;
|
|
21
|
-
exports.unmarshalModelSupportInfo = marshalling_gen.unmarshalModelSupportInfo;
|
|
22
21
|
exports.ValidationRules = validationRules_gen;
|
package/dist/v1/index.gen.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { API } from './api.gen';
|
|
2
|
-
export * from './content.gen';
|
|
3
|
-
export * from './marshalling.gen';
|
|
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, ModelSupportInfo, ModelSupportedNode, ModelSupportedQuantization, NodeType, NodeTypeStock, UpdateDeploymentRequest, UpdateEndpointRequest, } from './types.gen';
|
|
5
|
-
export * as ValidationRules from './validation-rules.gen';
|
|
1
|
+
export { API } from './api.gen.js';
|
|
2
|
+
export * from './content.gen.js';
|
|
3
|
+
export * from './marshalling.gen.js';
|
|
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, ModelSupportInfo, ModelSupportedNode, ModelSupportedQuantization, NodeType, NodeTypeStock, UpdateDeploymentRequest, UpdateEndpointRequest, } from './types.gen.js';
|
|
5
|
+
export * as ValidationRules from './validation-rules.gen.js';
|
package/dist/v1/index.gen.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { API } from "./api.gen.js";
|
|
2
2
|
import { DEPLOYMENT_TRANSIENT_STATUSES, MODEL_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
3
|
-
import { marshalCreateDeploymentRequest, marshalCreateEndpointRequest, marshalCreateModelRequest, marshalUpdateDeploymentRequest, marshalUpdateEndpointRequest, unmarshalDeployment, unmarshalEndpoint, unmarshalListDeploymentsResponse, unmarshalListModelsResponse, unmarshalListNodeTypesResponse, unmarshalModel
|
|
3
|
+
import { marshalCreateDeploymentRequest, marshalCreateEndpointRequest, marshalCreateModelRequest, marshalUpdateDeploymentRequest, marshalUpdateEndpointRequest, unmarshalDeployment, unmarshalEndpoint, unmarshalListDeploymentsResponse, unmarshalListModelsResponse, unmarshalListNodeTypesResponse, unmarshalModel } from "./marshalling.gen.js";
|
|
4
4
|
import * as validationRules_gen from "./validation-rules.gen.js";
|
|
5
5
|
export {
|
|
6
6
|
API,
|
|
@@ -17,6 +17,5 @@ export {
|
|
|
17
17
|
unmarshalListDeploymentsResponse,
|
|
18
18
|
unmarshalListModelsResponse,
|
|
19
19
|
unmarshalListNodeTypesResponse,
|
|
20
|
-
unmarshalModel
|
|
21
|
-
unmarshalModelSupportInfo
|
|
20
|
+
unmarshalModel
|
|
22
21
|
};
|
|
@@ -34,42 +34,6 @@ const unmarshalEndpoint = (data) => {
|
|
|
34
34
|
url: data.url
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
|
-
const unmarshalModelSupportedQuantization = (data) => {
|
|
38
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
39
|
-
throw new TypeError(
|
|
40
|
-
`Unmarshalling the type 'ModelSupportedQuantization' failed as data isn't a dictionary.`
|
|
41
|
-
);
|
|
42
|
-
}
|
|
43
|
-
return {
|
|
44
|
-
allowed: data.allowed,
|
|
45
|
-
maxContextSize: data.max_context_size,
|
|
46
|
-
quantizationBits: data.quantization_bits
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
const unmarshalModelSupportedNode = (data) => {
|
|
50
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
51
|
-
throw new TypeError(
|
|
52
|
-
`Unmarshalling the type 'ModelSupportedNode' failed as data isn't a dictionary.`
|
|
53
|
-
);
|
|
54
|
-
}
|
|
55
|
-
return {
|
|
56
|
-
nodeTypeName: data.node_type_name,
|
|
57
|
-
quantizations: sdkClient.unmarshalArrayOfObject(
|
|
58
|
-
data.quantizations,
|
|
59
|
-
unmarshalModelSupportedQuantization
|
|
60
|
-
)
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
const unmarshalModelSupportInfo = (data) => {
|
|
64
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
65
|
-
throw new TypeError(
|
|
66
|
-
`Unmarshalling the type 'ModelSupportInfo' failed as data isn't a dictionary.`
|
|
67
|
-
);
|
|
68
|
-
}
|
|
69
|
-
return {
|
|
70
|
-
nodes: sdkClient.unmarshalArrayOfObject(data.nodes, unmarshalModelSupportedNode)
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
37
|
const unmarshalDeploymentQuantization = (data) => {
|
|
74
38
|
if (!sdkClient.isJSONObject(data)) {
|
|
75
39
|
throw new TypeError(
|
|
@@ -106,6 +70,42 @@ const unmarshalDeployment = (data) => {
|
|
|
106
70
|
updatedAt: sdkClient.unmarshalDate(data.updated_at)
|
|
107
71
|
};
|
|
108
72
|
};
|
|
73
|
+
const unmarshalModelSupportedQuantization = (data) => {
|
|
74
|
+
if (!sdkClient.isJSONObject(data)) {
|
|
75
|
+
throw new TypeError(
|
|
76
|
+
`Unmarshalling the type 'ModelSupportedQuantization' failed as data isn't a dictionary.`
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
allowed: data.allowed,
|
|
81
|
+
maxContextSize: data.max_context_size,
|
|
82
|
+
quantizationBits: data.quantization_bits
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
const unmarshalModelSupportedNode = (data) => {
|
|
86
|
+
if (!sdkClient.isJSONObject(data)) {
|
|
87
|
+
throw new TypeError(
|
|
88
|
+
`Unmarshalling the type 'ModelSupportedNode' failed as data isn't a dictionary.`
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
return {
|
|
92
|
+
nodeTypeName: data.node_type_name,
|
|
93
|
+
quantizations: sdkClient.unmarshalArrayOfObject(
|
|
94
|
+
data.quantizations,
|
|
95
|
+
unmarshalModelSupportedQuantization
|
|
96
|
+
)
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
const unmarshalModelSupportInfo = (data) => {
|
|
100
|
+
if (!sdkClient.isJSONObject(data)) {
|
|
101
|
+
throw new TypeError(
|
|
102
|
+
`Unmarshalling the type 'ModelSupportInfo' failed as data isn't a dictionary.`
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
return {
|
|
106
|
+
nodes: sdkClient.unmarshalArrayOfObject(data.nodes, unmarshalModelSupportedNode)
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
109
|
const unmarshalModel = (data) => {
|
|
110
110
|
if (!sdkClient.isJSONObject(data)) {
|
|
111
111
|
throw new TypeError(
|
|
@@ -255,4 +255,3 @@ exports.unmarshalListDeploymentsResponse = unmarshalListDeploymentsResponse;
|
|
|
255
255
|
exports.unmarshalListModelsResponse = unmarshalListModelsResponse;
|
|
256
256
|
exports.unmarshalListNodeTypesResponse = unmarshalListNodeTypesResponse;
|
|
257
257
|
exports.unmarshalModel = unmarshalModel;
|
|
258
|
-
exports.unmarshalModelSupportInfo = unmarshalModelSupportInfo;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { DefaultValues } from '@scaleway/sdk-client';
|
|
2
|
-
import type { CreateDeploymentRequest, CreateEndpointRequest, CreateModelRequest, Deployment, Endpoint, ListDeploymentsResponse, ListModelsResponse, ListNodeTypesResponse, Model,
|
|
2
|
+
import type { CreateDeploymentRequest, CreateEndpointRequest, CreateModelRequest, Deployment, Endpoint, ListDeploymentsResponse, ListModelsResponse, ListNodeTypesResponse, Model, UpdateDeploymentRequest, UpdateEndpointRequest } from './types.gen.js';
|
|
3
3
|
export declare const unmarshalEndpoint: (data: unknown) => Endpoint;
|
|
4
|
-
export declare const unmarshalModelSupportInfo: (data: unknown) => ModelSupportInfo;
|
|
5
4
|
export declare const unmarshalDeployment: (data: unknown) => Deployment;
|
|
6
5
|
export declare const unmarshalModel: (data: unknown) => Model;
|
|
7
6
|
export declare const unmarshalListDeploymentsResponse: (data: unknown) => ListDeploymentsResponse;
|
|
@@ -32,42 +32,6 @@ const unmarshalEndpoint = (data) => {
|
|
|
32
32
|
url: data.url
|
|
33
33
|
};
|
|
34
34
|
};
|
|
35
|
-
const unmarshalModelSupportedQuantization = (data) => {
|
|
36
|
-
if (!isJSONObject(data)) {
|
|
37
|
-
throw new TypeError(
|
|
38
|
-
`Unmarshalling the type 'ModelSupportedQuantization' failed as data isn't a dictionary.`
|
|
39
|
-
);
|
|
40
|
-
}
|
|
41
|
-
return {
|
|
42
|
-
allowed: data.allowed,
|
|
43
|
-
maxContextSize: data.max_context_size,
|
|
44
|
-
quantizationBits: data.quantization_bits
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
const unmarshalModelSupportedNode = (data) => {
|
|
48
|
-
if (!isJSONObject(data)) {
|
|
49
|
-
throw new TypeError(
|
|
50
|
-
`Unmarshalling the type 'ModelSupportedNode' failed as data isn't a dictionary.`
|
|
51
|
-
);
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
nodeTypeName: data.node_type_name,
|
|
55
|
-
quantizations: unmarshalArrayOfObject(
|
|
56
|
-
data.quantizations,
|
|
57
|
-
unmarshalModelSupportedQuantization
|
|
58
|
-
)
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
const unmarshalModelSupportInfo = (data) => {
|
|
62
|
-
if (!isJSONObject(data)) {
|
|
63
|
-
throw new TypeError(
|
|
64
|
-
`Unmarshalling the type 'ModelSupportInfo' failed as data isn't a dictionary.`
|
|
65
|
-
);
|
|
66
|
-
}
|
|
67
|
-
return {
|
|
68
|
-
nodes: unmarshalArrayOfObject(data.nodes, unmarshalModelSupportedNode)
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
35
|
const unmarshalDeploymentQuantization = (data) => {
|
|
72
36
|
if (!isJSONObject(data)) {
|
|
73
37
|
throw new TypeError(
|
|
@@ -104,6 +68,42 @@ const unmarshalDeployment = (data) => {
|
|
|
104
68
|
updatedAt: unmarshalDate(data.updated_at)
|
|
105
69
|
};
|
|
106
70
|
};
|
|
71
|
+
const unmarshalModelSupportedQuantization = (data) => {
|
|
72
|
+
if (!isJSONObject(data)) {
|
|
73
|
+
throw new TypeError(
|
|
74
|
+
`Unmarshalling the type 'ModelSupportedQuantization' failed as data isn't a dictionary.`
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
allowed: data.allowed,
|
|
79
|
+
maxContextSize: data.max_context_size,
|
|
80
|
+
quantizationBits: data.quantization_bits
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
const unmarshalModelSupportedNode = (data) => {
|
|
84
|
+
if (!isJSONObject(data)) {
|
|
85
|
+
throw new TypeError(
|
|
86
|
+
`Unmarshalling the type 'ModelSupportedNode' failed as data isn't a dictionary.`
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
|
+
return {
|
|
90
|
+
nodeTypeName: data.node_type_name,
|
|
91
|
+
quantizations: unmarshalArrayOfObject(
|
|
92
|
+
data.quantizations,
|
|
93
|
+
unmarshalModelSupportedQuantization
|
|
94
|
+
)
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
const unmarshalModelSupportInfo = (data) => {
|
|
98
|
+
if (!isJSONObject(data)) {
|
|
99
|
+
throw new TypeError(
|
|
100
|
+
`Unmarshalling the type 'ModelSupportInfo' failed as data isn't a dictionary.`
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
return {
|
|
104
|
+
nodes: unmarshalArrayOfObject(data.nodes, unmarshalModelSupportedNode)
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
107
|
const unmarshalModel = (data) => {
|
|
108
108
|
if (!isJSONObject(data)) {
|
|
109
109
|
throw new TypeError(
|
|
@@ -253,6 +253,5 @@ export {
|
|
|
253
253
|
unmarshalListDeploymentsResponse,
|
|
254
254
|
unmarshalListModelsResponse,
|
|
255
255
|
unmarshalListNodeTypesResponse,
|
|
256
|
-
unmarshalModel
|
|
257
|
-
unmarshalModelSupportInfo
|
|
256
|
+
unmarshalModel
|
|
258
257
|
};
|
package/dist/v1/types.gen.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Region as ScwRegion } from '@scaleway/sdk-client';
|
|
2
|
-
export type DeploymentStatus = 'unknown_status' | 'creating' | 'deploying' | 'ready' | 'error' | 'deleting' | 'locked';
|
|
2
|
+
export type DeploymentStatus = 'unknown_status' | 'creating' | 'deploying' | 'ready' | 'error' | 'deleting' | 'locked' | 'scaling';
|
|
3
3
|
export type ListDeploymentsRequestOrderBy = 'created_at_desc' | 'created_at_asc' | 'name_asc' | 'name_desc';
|
|
4
4
|
export type ListModelsRequestOrderBy = 'display_rank_asc' | 'created_at_asc' | 'created_at_desc' | 'name_asc' | 'name_desc';
|
|
5
5
|
export type ModelStatus = 'unknown_status' | 'preparing' | 'downloading' | 'ready' | 'error';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { API as ParentAPI } from '@scaleway/sdk-client';
|
|
2
1
|
import type { ApiLocality, WaitForOptions } from '@scaleway/sdk-client';
|
|
3
|
-
import
|
|
2
|
+
import { API as ParentAPI } from '@scaleway/sdk-client';
|
|
3
|
+
import type { AddDeploymentACLRulesRequest, AddDeploymentACLRulesResponse, CreateDeploymentRequest, CreateEndpointRequest, DeleteDeploymentACLRuleRequest, DeleteDeploymentRequest, DeleteEndpointRequest, Deployment, Endpoint, Eula, GetDeploymentCertificateRequest, GetDeploymentRequest, GetModelEulaRequest, GetModelRequest, ListDeploymentACLRulesRequest, ListDeploymentACLRulesResponse, ListDeploymentsRequest, ListDeploymentsResponse, ListModelsRequest, ListModelsResponse, ListNodeTypesRequest, ListNodeTypesResponse, Model, SetDeploymentACLRulesRequest, SetDeploymentACLRulesResponse, UpdateDeploymentRequest, UpdateEndpointRequest } from './types.gen.js';
|
|
4
4
|
/**
|
|
5
5
|
* Managed Inference API.
|
|
6
6
|
|
|
@@ -95,8 +95,8 @@ export declare class API extends ParentAPI {
|
|
|
95
95
|
* @returns A Promise of ListDeploymentACLRulesResponse
|
|
96
96
|
*/
|
|
97
97
|
listDeploymentACLRules: (request: Readonly<ListDeploymentACLRulesRequest>) => Promise<ListDeploymentACLRulesResponse> & {
|
|
98
|
-
all: () => Promise<import("./types.gen").ACLRule[]>;
|
|
99
|
-
[Symbol.asyncIterator]: () => AsyncGenerator<import("./types.gen").ACLRule[], void, void>;
|
|
98
|
+
all: () => Promise<import("./types.gen.js").ACLRule[]>;
|
|
99
|
+
[Symbol.asyncIterator]: () => AsyncGenerator<import("./types.gen.js").ACLRule[], void, void>;
|
|
100
100
|
};
|
|
101
101
|
/**
|
|
102
102
|
* Add new ACLs. Add new ACL rules for a specific deployment.
|
|
@@ -145,7 +145,7 @@ export declare class API extends ParentAPI {
|
|
|
145
145
|
* @returns A Promise of ListNodeTypesResponse
|
|
146
146
|
*/
|
|
147
147
|
listNodeTypes: (request: Readonly<ListNodeTypesRequest>) => Promise<ListNodeTypesResponse> & {
|
|
148
|
-
all: () => Promise<import("./types.gen").NodeType[]>;
|
|
149
|
-
[Symbol.asyncIterator]: () => AsyncGenerator<import("./types.gen").NodeType[], void, void>;
|
|
148
|
+
all: () => Promise<import("./types.gen.js").NodeType[]>;
|
|
149
|
+
[Symbol.asyncIterator]: () => AsyncGenerator<import("./types.gen.js").NodeType[], void, void>;
|
|
150
150
|
};
|
|
151
151
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { API } from './api.gen';
|
|
2
|
-
export * from './content.gen';
|
|
3
|
-
export * from './marshalling.gen';
|
|
4
|
-
export type { ACLRule, ACLRuleRequest, AddDeploymentACLRulesRequest, AddDeploymentACLRulesResponse, CreateDeploymentRequest, CreateEndpointRequest, DeleteDeploymentACLRuleRequest, DeleteDeploymentRequest, DeleteEndpointRequest, Deployment, DeploymentStatus, Endpoint, EndpointPrivateNetworkDetails, EndpointPublicAccessDetails, EndpointSpec, EndpointSpecPrivateNetwork, EndpointSpecPublic, Eula, GetDeploymentCertificateRequest, GetDeploymentRequest, GetModelEulaRequest, GetModelRequest, ListDeploymentACLRulesRequest, ListDeploymentACLRulesResponse, ListDeploymentsRequest, ListDeploymentsRequestOrderBy, ListDeploymentsResponse, ListModelsRequest, ListModelsRequestOrderBy, ListModelsResponse, ListNodeTypesRequest, ListNodeTypesResponse, Model, ModelS3Model, NodeType, NodeTypeStock, SetDeploymentACLRulesRequest, SetDeploymentACLRulesResponse, UpdateDeploymentRequest, UpdateEndpointRequest, } from './types.gen';
|
|
5
|
-
export * as ValidationRules from './validation-rules.gen';
|
|
1
|
+
export { API } from './api.gen.js';
|
|
2
|
+
export * from './content.gen.js';
|
|
3
|
+
export * from './marshalling.gen.js';
|
|
4
|
+
export type { ACLRule, ACLRuleRequest, AddDeploymentACLRulesRequest, AddDeploymentACLRulesResponse, CreateDeploymentRequest, CreateEndpointRequest, DeleteDeploymentACLRuleRequest, DeleteDeploymentRequest, DeleteEndpointRequest, Deployment, DeploymentStatus, Endpoint, EndpointPrivateNetworkDetails, EndpointPublicAccessDetails, EndpointSpec, EndpointSpecPrivateNetwork, EndpointSpecPublic, Eula, GetDeploymentCertificateRequest, GetDeploymentRequest, GetModelEulaRequest, GetModelRequest, ListDeploymentACLRulesRequest, ListDeploymentACLRulesResponse, ListDeploymentsRequest, ListDeploymentsRequestOrderBy, ListDeploymentsResponse, ListModelsRequest, ListModelsRequestOrderBy, ListModelsResponse, ListNodeTypesRequest, ListNodeTypesResponse, Model, ModelS3Model, NodeType, NodeTypeStock, SetDeploymentACLRulesRequest, SetDeploymentACLRulesResponse, UpdateDeploymentRequest, UpdateEndpointRequest, } from './types.gen.js';
|
|
5
|
+
export * as ValidationRules from './validation-rules.gen.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DefaultValues } from '@scaleway/sdk-client';
|
|
2
|
-
import type { AddDeploymentACLRulesRequest, AddDeploymentACLRulesResponse, CreateDeploymentRequest, CreateEndpointRequest, Deployment, Endpoint, Eula, ListDeploymentACLRulesResponse, ListDeploymentsResponse, ListModelsResponse, ListNodeTypesResponse, Model, SetDeploymentACLRulesRequest, SetDeploymentACLRulesResponse, UpdateDeploymentRequest, UpdateEndpointRequest } from './types.gen';
|
|
2
|
+
import type { AddDeploymentACLRulesRequest, AddDeploymentACLRulesResponse, CreateDeploymentRequest, CreateEndpointRequest, Deployment, Endpoint, Eula, ListDeploymentACLRulesResponse, ListDeploymentsResponse, ListModelsResponse, ListNodeTypesResponse, Model, SetDeploymentACLRulesRequest, SetDeploymentACLRulesResponse, UpdateDeploymentRequest, UpdateEndpointRequest } from './types.gen.js';
|
|
3
3
|
export declare const unmarshalEndpoint: (data: unknown) => Endpoint;
|
|
4
4
|
export declare const unmarshalDeployment: (data: unknown) => Deployment;
|
|
5
5
|
export declare const unmarshalModel: (data: unknown) => Model;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Region as ScwRegion } from '@scaleway/sdk-client';
|
|
2
|
-
export type DeploymentStatus = 'unknown_status' | 'creating' | 'deploying' | 'ready' | 'error' | 'deleting' | 'locked';
|
|
2
|
+
export type DeploymentStatus = 'unknown_status' | 'creating' | 'deploying' | 'ready' | 'error' | 'deleting' | 'locked' | 'scaling';
|
|
3
3
|
export type ListDeploymentsRequestOrderBy = 'created_at_desc' | 'created_at_asc' | 'name_asc' | 'name_desc';
|
|
4
4
|
export type ListModelsRequestOrderBy = 'display_rank_asc' | 'created_at_asc' | 'created_at_desc' | 'name_asc' | 'name_desc';
|
|
5
5
|
export type NodeTypeStock = 'unknown_stock' | 'low_stock' | 'out_of_stock' | 'available';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk-inference",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Scaleway SDK inference",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"files": [
|
|
@@ -26,17 +26,17 @@
|
|
|
26
26
|
"directory": "packages_generated/inference"
|
|
27
27
|
},
|
|
28
28
|
"engines": {
|
|
29
|
-
"node": ">=20.19.
|
|
29
|
+
"node": ">=20.19.4"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@scaleway/random-name": "5.1.
|
|
33
|
-
"@scaleway/sdk-std": "1.0
|
|
32
|
+
"@scaleway/random-name": "5.1.2",
|
|
33
|
+
"@scaleway/sdk-std": "1.1.0"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@scaleway/sdk-client": "^1.3.
|
|
36
|
+
"@scaleway/sdk-client": "^1.3.2"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@scaleway/sdk-client": "^1.3.
|
|
39
|
+
"@scaleway/sdk-client": "^1.3.2"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"package:check": "pnpm publint",
|