@scaleway/sdk-inference 2.3.2 → 2.5.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.
@@ -127,7 +127,7 @@ var API = class extends API$1 {
127
127
  pageOfListModels = (request = {}) => this.client.fetch({
128
128
  method: "GET",
129
129
  path: `/inference/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/models`,
130
- 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
+ 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])
131
131
  }, unmarshalListModelsResponse);
132
132
  /**
133
133
  * List models. List all available models.
@@ -0,0 +1,70 @@
1
+ export declare const queriesMetadata: {
2
+ readonly namespace: "inference";
3
+ readonly version: "v1";
4
+ readonly folderName: "inferencev1";
5
+ readonly services: readonly [{
6
+ readonly apiClass: "API";
7
+ readonly methods: readonly [{
8
+ readonly methodName: "listDeployments";
9
+ readonly protoName: "ListDeployments";
10
+ readonly paramsType: "ListDeploymentsRequest";
11
+ readonly returnType: "ListDeploymentsResponse";
12
+ readonly isList: true;
13
+ readonly paginationType: "offset";
14
+ readonly pageParamKey: "page";
15
+ readonly listItemType: "Deployment";
16
+ readonly isPrivate: false;
17
+ readonly description: "\"";
18
+ }, {
19
+ readonly methodName: "getDeployment";
20
+ readonly protoName: "GetDeployment";
21
+ readonly paramsType: "GetDeploymentRequest";
22
+ readonly returnType: "Deployment";
23
+ readonly isList: false;
24
+ readonly paginationType: "none";
25
+ readonly isPrivate: false;
26
+ readonly description: "\"";
27
+ }, {
28
+ readonly methodName: "getDeploymentCertificate";
29
+ readonly protoName: "GetDeploymentCertificate";
30
+ readonly paramsType: "GetDeploymentCertificateRequest";
31
+ readonly returnType: "Blob";
32
+ readonly isList: false;
33
+ readonly paginationType: "none";
34
+ readonly isPrivate: false;
35
+ readonly description: "\"";
36
+ }, {
37
+ readonly methodName: "listModels";
38
+ readonly protoName: "ListModels";
39
+ readonly paramsType: "ListModelsRequest";
40
+ readonly returnType: "ListModelsResponse";
41
+ readonly isList: true;
42
+ readonly paginationType: "offset";
43
+ readonly pageParamKey: "page";
44
+ readonly listItemType: "Model";
45
+ readonly isPrivate: false;
46
+ readonly description: "\"";
47
+ }, {
48
+ readonly methodName: "getModel";
49
+ readonly protoName: "GetModel";
50
+ readonly paramsType: "GetModelRequest";
51
+ readonly returnType: "Model";
52
+ readonly isList: false;
53
+ readonly paginationType: "none";
54
+ readonly isPrivate: false;
55
+ readonly description: "\"";
56
+ }, {
57
+ readonly methodName: "listNodeTypes";
58
+ readonly protoName: "ListNodeTypes";
59
+ readonly paramsType: "ListNodeTypesRequest";
60
+ readonly returnType: "ListNodeTypesResponse";
61
+ readonly isList: true;
62
+ readonly paginationType: "offset";
63
+ readonly pageParamKey: "page";
64
+ readonly listItemType: "NodeType";
65
+ readonly isPrivate: false;
66
+ readonly description: "\"";
67
+ }];
68
+ }];
69
+ };
70
+ export type QueriesMetadata = typeof queriesMetadata;
@@ -0,0 +1,79 @@
1
+ //#region src/v1/metadata.gen.ts
2
+ var queriesMetadata = {
3
+ namespace: "inference",
4
+ version: "v1",
5
+ folderName: "inferencev1",
6
+ services: [{
7
+ apiClass: "API",
8
+ methods: [
9
+ {
10
+ methodName: "listDeployments",
11
+ protoName: "ListDeployments",
12
+ paramsType: "ListDeploymentsRequest",
13
+ returnType: "ListDeploymentsResponse",
14
+ isList: true,
15
+ paginationType: "offset",
16
+ pageParamKey: "page",
17
+ listItemType: "Deployment",
18
+ isPrivate: false,
19
+ description: "\""
20
+ },
21
+ {
22
+ methodName: "getDeployment",
23
+ protoName: "GetDeployment",
24
+ paramsType: "GetDeploymentRequest",
25
+ returnType: "Deployment",
26
+ isList: false,
27
+ paginationType: "none",
28
+ isPrivate: false,
29
+ description: "\""
30
+ },
31
+ {
32
+ methodName: "getDeploymentCertificate",
33
+ protoName: "GetDeploymentCertificate",
34
+ paramsType: "GetDeploymentCertificateRequest",
35
+ returnType: "Blob",
36
+ isList: false,
37
+ paginationType: "none",
38
+ isPrivate: false,
39
+ description: "\""
40
+ },
41
+ {
42
+ methodName: "listModels",
43
+ protoName: "ListModels",
44
+ paramsType: "ListModelsRequest",
45
+ returnType: "ListModelsResponse",
46
+ isList: true,
47
+ paginationType: "offset",
48
+ pageParamKey: "page",
49
+ listItemType: "Model",
50
+ isPrivate: false,
51
+ description: "\""
52
+ },
53
+ {
54
+ methodName: "getModel",
55
+ protoName: "GetModel",
56
+ paramsType: "GetModelRequest",
57
+ returnType: "Model",
58
+ isList: false,
59
+ paginationType: "none",
60
+ isPrivate: false,
61
+ description: "\""
62
+ },
63
+ {
64
+ methodName: "listNodeTypes",
65
+ protoName: "ListNodeTypes",
66
+ paramsType: "ListNodeTypesRequest",
67
+ returnType: "ListNodeTypesResponse",
68
+ isList: true,
69
+ paginationType: "offset",
70
+ pageParamKey: "page",
71
+ listItemType: "NodeType",
72
+ isPrivate: false,
73
+ description: "\""
74
+ }
75
+ ]
76
+ }]
77
+ };
78
+ //#endregion
79
+ export { queriesMetadata };
@@ -138,7 +138,7 @@ export interface Deployment {
138
138
  */
139
139
  minSize: number;
140
140
  /**
141
- * Defines the maximum size of the pool.
141
+ * Defines the maximum size of the pool. Currently, autoscaling is not yet supported, and this value must be equal to `min_size`.
142
142
  */
143
143
  maxSize: number;
144
144
  /**
@@ -313,7 +313,7 @@ export type CreateDeploymentRequest = {
313
313
  */
314
314
  minSize?: number;
315
315
  /**
316
- * Defines the maximum size of the pool.
316
+ * Defines the maximum size of the pool. Currently, autoscaling is not yet supported, and this value must be equal to `min_size`.
317
317
  */
318
318
  maxSize?: number;
319
319
  /**
@@ -479,6 +479,10 @@ export type ListModelsRequest = {
479
479
  * Filter by Project ID.
480
480
  */
481
481
  projectId?: string;
482
+ /**
483
+ * Filter by Organization ID.
484
+ */
485
+ organizationId?: string;
482
486
  /**
483
487
  * Filter by model name.
484
488
  */
@@ -548,7 +552,7 @@ export type UpdateDeploymentRequest = {
548
552
  */
549
553
  minSize?: number;
550
554
  /**
551
- * Defines the new maximum size of the pool.
555
+ * Defines the maximum size of the pool. Currently, autoscaling is not yet supported, and this value must be equal to `min_size`.
552
556
  */
553
557
  maxSize?: number;
554
558
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk-inference",
3
- "version": "2.3.2",
3
+ "version": "2.5.0",
4
4
  "description": "Scaleway SDK inference",
5
5
  "license": "Apache-2.0",
6
6
  "files": [