@scaleway/sdk 2.29.0 → 2.30.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.
@@ -0,0 +1,268 @@
1
+ import type { Region } from '../../../bridge';
2
+ export type DataKeyAlgorithmSymmetricEncryption = 'unknown_symmetric_encryption' | 'aes_256_gcm';
3
+ export type KeyAlgorithmSymmetricEncryption = 'unknown_symmetric_encryption' | 'aes_256_gcm';
4
+ export type KeyState = 'unknown_state' | 'enabled' | 'disabled' | 'pending_key_material';
5
+ export type ListKeysRequestOrderBy = 'name_asc' | 'name_desc' | 'created_at_asc' | 'created_at_desc' | 'updated_at_asc' | 'updated_at_desc';
6
+ export interface KeyRotationPolicy {
7
+ /**
8
+ * Duration between two key rotations. The minimum duration is 24 hours and
9
+ * the maximum duration is 876000 hours (1 year).
10
+ */
11
+ rotationPeriod?: string;
12
+ /** Date at which the key will be rotated next. */
13
+ nextRotationAt?: Date;
14
+ }
15
+ export interface KeyUsage {
16
+ /** One-of ('usage'): at most one of 'symmetricEncryption' could be set. */
17
+ symmetricEncryption?: KeyAlgorithmSymmetricEncryption;
18
+ }
19
+ export interface Key {
20
+ /** ID of the key. */
21
+ id: string;
22
+ /** ID of the Project containing the key. */
23
+ projectId: string;
24
+ /** Name of the key. */
25
+ name: string;
26
+ /**
27
+ * Keys with a usage set to `symmetric_encryption` are used to encrypt and
28
+ * decrypt data. The only key algorithm currently supported by Key Manager is
29
+ * AES-256-GCM.
30
+ */
31
+ usage?: KeyUsage;
32
+ /**
33
+ * Current state of the key. Values include: `unknown_state`: key is in an
34
+ * unknown state. `enabled`: key can be used for cryptographic operations.
35
+ * `disabled`: key cannot be used for cryptographic operations.
36
+ */
37
+ state: KeyState;
38
+ /** The rotation count tracks the amount of times that the key was rotated. */
39
+ rotationCount: number;
40
+ /** Key creation date. */
41
+ createdAt?: Date;
42
+ /** Key last modification date. */
43
+ updatedAt?: Date;
44
+ /** Returns `true` if key protection is applied to the key. */
45
+ protected: boolean;
46
+ /** Returns `true` if the key is locked. */
47
+ locked: boolean;
48
+ /** Description of the key. */
49
+ description?: string;
50
+ /** List of the key's tags. */
51
+ tags: string[];
52
+ /** Key last rotation date. */
53
+ rotatedAt?: Date;
54
+ /** Key rotation policy. */
55
+ rotationPolicy?: KeyRotationPolicy;
56
+ /** Region of the key. */
57
+ region: Region;
58
+ }
59
+ export type CreateKeyRequest = {
60
+ /**
61
+ * Region to target. If none is passed will use default region from the
62
+ * config.
63
+ */
64
+ region?: Region;
65
+ /** ID of the Project containing the key. */
66
+ projectId?: string;
67
+ /** (Optional) Name of the key. */
68
+ name?: string;
69
+ /**
70
+ * See the `Key.Algorithm.SymmetricEncryption` enum for a description of
71
+ * values.
72
+ */
73
+ usage?: KeyUsage;
74
+ /** (Optional) Description of the key. */
75
+ description?: string;
76
+ /** (Optional) List of the key's tags. */
77
+ tags?: string[];
78
+ /** If not specified, no rotation policy will be applied to the key. */
79
+ rotationPolicy?: KeyRotationPolicy;
80
+ /** Default value is `false`. */
81
+ unprotected: boolean;
82
+ };
83
+ export interface DataKey {
84
+ /** ID of the data encryption key. */
85
+ keyId: string;
86
+ /** Symmetric encryption algorithm of the data encryption key. */
87
+ algorithm: DataKeyAlgorithmSymmetricEncryption;
88
+ /**
89
+ * Your data encryption key's ciphertext can be stored safely. It can only be
90
+ * decrypted through the keys you create in Key Manager, using the relevant
91
+ * key ID.
92
+ */
93
+ ciphertext: string;
94
+ /**
95
+ * (Optional) Your data encryption key's plaintext allows you to use the key
96
+ * immediately upon creation. It must neither be stored or shared.
97
+ */
98
+ plaintext?: string;
99
+ /** Data encryption key creation date. */
100
+ createdAt?: Date;
101
+ }
102
+ export type DecryptRequest = {
103
+ /**
104
+ * Region to target. If none is passed will use default region from the
105
+ * config.
106
+ */
107
+ region?: Region;
108
+ /** ID of the key to decrypt. */
109
+ keyId: string;
110
+ /** Data size must be between 1 and 131071 bytes. */
111
+ ciphertext: string;
112
+ /** The additional data must match the value passed in the encryption request. */
113
+ associatedData?: string;
114
+ };
115
+ export interface DecryptResponse {
116
+ /** ID of the key used for decryption. */
117
+ keyId: string;
118
+ /** Key's decrypted data. */
119
+ plaintext: string;
120
+ /**
121
+ * If the data was already encrypted with the latest key rotation, no output
122
+ * will be returned in the response object.
123
+ */
124
+ ciphertext?: string;
125
+ }
126
+ export type DeleteKeyRequest = {
127
+ /**
128
+ * Region to target. If none is passed will use default region from the
129
+ * config.
130
+ */
131
+ region?: Region;
132
+ /** ID of the key to delete. */
133
+ keyId: string;
134
+ };
135
+ export type DisableKeyRequest = {
136
+ /**
137
+ * Region to target. If none is passed will use default region from the
138
+ * config.
139
+ */
140
+ region?: Region;
141
+ /** ID of the key to disable. */
142
+ keyId: string;
143
+ };
144
+ export type EnableKeyRequest = {
145
+ /**
146
+ * Region to target. If none is passed will use default region from the
147
+ * config.
148
+ */
149
+ region?: Region;
150
+ /** ID of the key to enable. */
151
+ keyId: string;
152
+ };
153
+ export type EncryptRequest = {
154
+ /**
155
+ * Region to target. If none is passed will use default region from the
156
+ * config.
157
+ */
158
+ region?: Region;
159
+ /** ID of the key to encrypt. */
160
+ keyId: string;
161
+ /** Data size must be between 1 and 65535 bytes. */
162
+ plaintext: string;
163
+ /**
164
+ * Additional data which will not be encrypted, but authenticated and appended
165
+ * to the encrypted payload.
166
+ */
167
+ associatedData?: string;
168
+ };
169
+ export interface EncryptResponse {
170
+ /** ID of the key used for encryption. */
171
+ keyId: string;
172
+ /** Key's encrypted data. */
173
+ ciphertext: string;
174
+ }
175
+ export type GenerateDataKeyRequest = {
176
+ /**
177
+ * Region to target. If none is passed will use default region from the
178
+ * config.
179
+ */
180
+ region?: Region;
181
+ /** ID of the key. */
182
+ keyId: string;
183
+ /** Symmetric encryption algorithm of the data encryption key. */
184
+ algorithm?: DataKeyAlgorithmSymmetricEncryption;
185
+ /**
186
+ * Default value is `false`, meaning that the plaintext is returned. Set it to
187
+ * `true` if you do not wish the plaintext to be returned in the response
188
+ * object.
189
+ */
190
+ withoutPlaintext: boolean;
191
+ };
192
+ export type GetKeyRequest = {
193
+ /**
194
+ * Region to target. If none is passed will use default region from the
195
+ * config.
196
+ */
197
+ region?: Region;
198
+ /** ID of the key to target. */
199
+ keyId: string;
200
+ };
201
+ export type ListKeysRequest = {
202
+ /**
203
+ * Region to target. If none is passed will use default region from the
204
+ * config.
205
+ */
206
+ region?: Region;
207
+ /** (Optional) Filter by Organization ID. */
208
+ organizationId?: string;
209
+ /** (Optional) Filter by Project ID. */
210
+ projectId?: string;
211
+ orderBy?: ListKeysRequestOrderBy;
212
+ page?: number;
213
+ pageSize?: number;
214
+ /** (Optional) List of tags to filter on. */
215
+ tags?: string[];
216
+ /** (Optional) Filter by key name. */
217
+ name?: string;
218
+ };
219
+ export interface ListKeysResponse {
220
+ /** Single page of keys matching the requested criteria. */
221
+ keys: Key[];
222
+ /** Total count of keys matching the requested criteria. */
223
+ totalCount: number;
224
+ }
225
+ export type ProtectKeyRequest = {
226
+ /**
227
+ * Region to target. If none is passed will use default region from the
228
+ * config.
229
+ */
230
+ region?: Region;
231
+ /** ID of the key to apply key protection to. */
232
+ keyId: string;
233
+ };
234
+ export type RotateKeyRequest = {
235
+ /**
236
+ * Region to target. If none is passed will use default region from the
237
+ * config.
238
+ */
239
+ region?: Region;
240
+ /** ID of the key to rotate. */
241
+ keyId: string;
242
+ };
243
+ export type UnprotectKeyRequest = {
244
+ /**
245
+ * Region to target. If none is passed will use default region from the
246
+ * config.
247
+ */
248
+ region?: Region;
249
+ /** ID of the key to remove key protection from. */
250
+ keyId: string;
251
+ };
252
+ export type UpdateKeyRequest = {
253
+ /**
254
+ * Region to target. If none is passed will use default region from the
255
+ * config.
256
+ */
257
+ region?: Region;
258
+ /** ID of the key to update. */
259
+ keyId: string;
260
+ /** (Optional) Updated name of the key. */
261
+ name?: string;
262
+ /** (Optional) Updated description of the key. */
263
+ description?: string;
264
+ /** (Optional) Updated list of the key's tags. */
265
+ tags?: string[];
266
+ /** If not specified, the key's existing rotation policy applies. */
267
+ rotationPolicy?: KeyRotationPolicy;
268
+ };
@@ -251,7 +251,7 @@ class API extends api.API {
251
251
  marshalling_gen.unmarshalListModelsResponse
252
252
  );
253
253
  /**
254
- * List models. List all available LLM models.
254
+ * List models. List all available models.
255
255
  *
256
256
  * @param request - The request {@link ListModelsRequest}
257
257
  * @returns A Promise of ListModelsResponse
@@ -2,9 +2,9 @@ import { API as ParentAPI } from '../../../bridge';
2
2
  import type { Region, WaitForOptions } from '../../../bridge';
3
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';
4
4
  /**
5
- * LLM Inference API.
5
+ * Managed Inference API.
6
6
  *
7
- * This API allows you to manage your LLM Inference services.
7
+ * This API allows you to manage your Inference services.
8
8
  */
9
9
  export declare class API extends ParentAPI {
10
10
  /** Lists the available regions of the API. */
@@ -118,7 +118,7 @@ export declare class API extends ParentAPI {
118
118
  deleteDeploymentACLRule: (request: Readonly<DeleteDeploymentACLRuleRequest>) => Promise<void>;
119
119
  protected pageOfListModels: (request?: Readonly<ListModelsRequest>) => Promise<ListModelsResponse>;
120
120
  /**
121
- * List models. List all available LLM models.
121
+ * List models. List all available models.
122
122
  *
123
123
  * @param request - The request {@link ListModelsRequest}
124
124
  * @returns A Promise of ListModelsResponse
@@ -249,7 +249,7 @@ class API extends API$1 {
249
249
  unmarshalListModelsResponse
250
250
  );
251
251
  /**
252
- * List models. List all available LLM models.
252
+ * List models. List all available models.
253
253
  *
254
254
  * @param request - The request {@link ListModelsRequest}
255
255
  * @returns A Promise of ListModelsResponse
@@ -79,8 +79,8 @@ export interface EndpointSpec {
79
79
  */
80
80
  privateNetwork?: EndpointSpecPrivateNetwork;
81
81
  /**
82
- * By default, LLM deployments are protected by IAM authentication. When
83
- * setting this field to true, the authentication will be disabled.
82
+ * By default, deployments are protected by IAM authentication. When setting
83
+ * this field to true, the authentication will be disabled.
84
84
  */
85
85
  disableAuth: boolean;
86
86
  }
@@ -426,8 +426,8 @@ export type UpdateEndpointRequest = {
426
426
  /** ID of the endpoint to update. */
427
427
  endpointId: string;
428
428
  /**
429
- * By default, LLM deployments are protected by IAM authentication. When
430
- * setting this field to true, the authentication will be disabled.
429
+ * By default, deployments are protected by IAM authentication. When setting
430
+ * this field to true, the authentication will be disabled.
431
431
  */
432
432
  disableAuth?: boolean;
433
433
  };
package/dist/index.cjs CHANGED
@@ -31,21 +31,22 @@ const index$h = require("./api/ipam/index.cjs");
31
31
  const index$i = require("./api/ipfs/index.cjs");
32
32
  const index$j = require("./api/jobs/index.cjs");
33
33
  const index$k = require("./api/k8s/index.cjs");
34
- const index$l = require("./api/lb/index.cjs");
35
- const index$m = require("./api/llm_inference/index.cjs");
36
- const index$n = require("./api/marketplace/index.cjs");
37
- const index$o = require("./api/mnq/index.cjs");
38
- const index$p = require("./api/rdb/index.cjs");
39
- const index$q = require("./api/redis/index.cjs");
40
- const index$r = require("./api/registry/index.cjs");
41
- const index$s = require("./api/secret/index.cjs");
42
- const index$t = require("./api/serverless_sqldb/index.cjs");
34
+ const index$l = require("./api/key_manager/index.cjs");
35
+ const index$m = require("./api/lb/index.cjs");
36
+ const index$n = require("./api/llm_inference/index.cjs");
37
+ const index$o = require("./api/marketplace/index.cjs");
38
+ const index$p = require("./api/mnq/index.cjs");
39
+ const index$q = require("./api/rdb/index.cjs");
40
+ const index$r = require("./api/redis/index.cjs");
41
+ const index$s = require("./api/registry/index.cjs");
42
+ const index$t = require("./api/secret/index.cjs");
43
+ const index$u = require("./api/serverless_sqldb/index.cjs");
43
44
  const index_gen = require("./api/std/index.gen.cjs");
44
- const index$u = require("./api/test/index.cjs");
45
- const index$v = require("./api/tem/index.cjs");
46
- const index$w = require("./api/vpc/index.cjs");
47
- const index$x = require("./api/vpcgw/index.cjs");
48
- const index$y = require("./api/webhosting/index.cjs");
45
+ const index$v = require("./api/test/index.cjs");
46
+ const index$w = require("./api/tem/index.cjs");
47
+ const index$x = require("./api/vpc/index.cjs");
48
+ const index$y = require("./api/vpcgw/index.cjs");
49
+ const index$z = require("./api/webhosting/index.cjs");
49
50
  exports.enableConsoleLogger = index.enableConsoleLogger;
50
51
  exports.setLogger = index.setLogger;
51
52
  exports.createAdvancedClient = client.createAdvancedClient;
@@ -98,18 +99,19 @@ exports.IPAM = index$h;
98
99
  exports.IPFS = index$i;
99
100
  exports.Jobs = index$j;
100
101
  exports.K8S = index$k;
101
- exports.LB = index$l;
102
- exports.LLMInference = index$m;
103
- exports.Marketplace = index$n;
104
- exports.MNQ = index$o;
105
- exports.RDB = index$p;
106
- exports.Redis = index$q;
107
- exports.Registry = index$r;
108
- exports.Secret = index$s;
109
- exports.ServerlessSQLDB = index$t;
102
+ exports.KeyManager = index$l;
103
+ exports.LB = index$m;
104
+ exports.LLMInference = index$n;
105
+ exports.Marketplace = index$o;
106
+ exports.MNQ = index$p;
107
+ exports.RDB = index$q;
108
+ exports.Redis = index$r;
109
+ exports.Registry = index$s;
110
+ exports.Secret = index$t;
111
+ exports.ServerlessSQLDB = index$u;
110
112
  exports.Std = index_gen;
111
- exports.Test = index$u;
112
- exports.TransactionalEmail = index$v;
113
- exports.VPC = index$w;
114
- exports.VPCGW = index$x;
115
- exports.Webhosting = index$y;
113
+ exports.Test = index$v;
114
+ exports.TransactionalEmail = index$w;
115
+ exports.VPC = index$x;
116
+ exports.VPCGW = index$y;
117
+ exports.Webhosting = index$z;
package/dist/index.js CHANGED
@@ -29,21 +29,22 @@ import * as index$g from "./api/ipam/index.js";
29
29
  import * as index$h from "./api/ipfs/index.js";
30
30
  import * as index$i from "./api/jobs/index.js";
31
31
  import * as index$j from "./api/k8s/index.js";
32
- import * as index$k from "./api/lb/index.js";
33
- import * as index$l from "./api/llm_inference/index.js";
34
- import * as index$m from "./api/marketplace/index.js";
35
- import * as index$n from "./api/mnq/index.js";
36
- import * as index$o from "./api/rdb/index.js";
37
- import * as index$p from "./api/redis/index.js";
38
- import * as index$q from "./api/registry/index.js";
39
- import * as index$r from "./api/secret/index.js";
40
- import * as index$s from "./api/serverless_sqldb/index.js";
32
+ import * as index$k from "./api/key_manager/index.js";
33
+ import * as index$l from "./api/lb/index.js";
34
+ import * as index$m from "./api/llm_inference/index.js";
35
+ import * as index$n from "./api/marketplace/index.js";
36
+ import * as index$o from "./api/mnq/index.js";
37
+ import * as index$p from "./api/rdb/index.js";
38
+ import * as index$q from "./api/redis/index.js";
39
+ import * as index$r from "./api/registry/index.js";
40
+ import * as index$s from "./api/secret/index.js";
41
+ import * as index$t from "./api/serverless_sqldb/index.js";
41
42
  import * as index_gen from "./api/std/index.gen.js";
42
- import * as index$t from "./api/test/index.js";
43
- import * as index$u from "./api/tem/index.js";
44
- import * as index$v from "./api/vpc/index.js";
45
- import * as index$w from "./api/vpcgw/index.js";
46
- import * as index$x from "./api/webhosting/index.js";
43
+ import * as index$u from "./api/test/index.js";
44
+ import * as index$v from "./api/tem/index.js";
45
+ import * as index$w from "./api/vpc/index.js";
46
+ import * as index$x from "./api/vpcgw/index.js";
47
+ import * as index$y from "./api/webhosting/index.js";
47
48
  export {
48
49
  API,
49
50
  index$1 as Account,
@@ -66,21 +67,22 @@ export {
66
67
  index$e as Instance,
67
68
  index$i as Jobs,
68
69
  index$j as K8S,
69
- index$k as LB,
70
- index$l as LLMInference,
71
- index$n as MNQ,
72
- index$m as Marketplace,
73
- index$o as RDB,
74
- index$p as Redis,
75
- index$q as Registry,
76
- index$r as Secret,
77
- index$s as ServerlessSQLDB,
70
+ index$k as KeyManager,
71
+ index$l as LB,
72
+ index$m as LLMInference,
73
+ index$o as MNQ,
74
+ index$n as Marketplace,
75
+ index$p as RDB,
76
+ index$q as Redis,
77
+ index$r as Registry,
78
+ index$s as Secret,
79
+ index$t as ServerlessSQLDB,
78
80
  index_gen as Std,
79
- index$t as Test,
80
- index$u as TransactionalEmail,
81
- index$v as VPC,
82
- index$w as VPCGW,
83
- index$x as Webhosting,
81
+ index$u as Test,
82
+ index$v as TransactionalEmail,
83
+ index$w as VPC,
84
+ index$x as VPCGW,
85
+ index$y as Webhosting,
84
86
  addAsyncHeaderInterceptor,
85
87
  authenticateWithSessionToken,
86
88
  createAdvancedClient,
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const version = "v2.28.0";
3
+ const version = "v2.29.0";
4
4
  const userAgent = `scaleway-sdk-js/${version}`;
5
5
  exports.userAgent = userAgent;
6
6
  exports.version = version;
@@ -1,2 +1,2 @@
1
- export declare const version = "v2.28.0";
2
- export declare const userAgent = "scaleway-sdk-js/v2.28.0";
1
+ export declare const version = "v2.29.0";
2
+ export declare const userAgent = "scaleway-sdk-js/v2.29.0";
@@ -1,4 +1,4 @@
1
- const version = "v2.28.0";
1
+ const version = "v2.29.0";
2
2
  const userAgent = `scaleway-sdk-js/${version}`;
3
3
  export {
4
4
  userAgent,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk",
3
- "version": "2.29.0",
3
+ "version": "2.30.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Scaleway SDK.",
6
6
  "keywords": [
@@ -39,5 +39,5 @@
39
39
  "bundledDependencies": [
40
40
  "@scaleway/random-name"
41
41
  ],
42
- "gitHead": "2383bfeab75618f0d4a774d7722cbd11530e422c"
42
+ "gitHead": "da7490af39a0c2a5d2d8a7c3f7bad276eb6660e3"
43
43
  }