@scaleway/sdk 2.28.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.
Files changed (47) hide show
  1. package/dist/api/baremetal/v1/marshalling.gen.cjs +1 -0
  2. package/dist/api/baremetal/v1/marshalling.gen.js +1 -0
  3. package/dist/api/baremetal/v1/types.gen.d.ts +5 -0
  4. package/dist/api/index.d.ts +1 -0
  5. package/dist/api/ipam/v1/api.gen.cjs +8 -0
  6. package/dist/api/ipam/v1/api.gen.d.ts +2 -1
  7. package/dist/api/ipam/v1/api.gen.js +9 -1
  8. package/dist/api/ipam/v1/index.gen.d.ts +1 -1
  9. package/dist/api/ipam/v1/marshalling.gen.cjs +4 -0
  10. package/dist/api/ipam/v1/marshalling.gen.d.ts +2 -1
  11. package/dist/api/ipam/v1/marshalling.gen.js +4 -0
  12. package/dist/api/ipam/v1/types.gen.d.ts +8 -0
  13. package/dist/api/key_manager/index.cjs +4 -0
  14. package/dist/api/key_manager/index.d.ts +1 -0
  15. package/dist/api/key_manager/index.js +4 -0
  16. package/dist/api/key_manager/v1alpha1/api.gen.cjs +257 -0
  17. package/dist/api/key_manager/v1alpha1/api.gen.d.ts +142 -0
  18. package/dist/api/key_manager/v1alpha1/api.gen.js +257 -0
  19. package/dist/api/key_manager/v1alpha1/index.gen.cjs +4 -0
  20. package/dist/api/key_manager/v1alpha1/index.gen.d.ts +2 -0
  21. package/dist/api/key_manager/v1alpha1/index.gen.js +4 -0
  22. package/dist/api/key_manager/v1alpha1/marshalling.gen.cjs +143 -0
  23. package/dist/api/key_manager/v1alpha1/marshalling.gen.d.ts +12 -0
  24. package/dist/api/key_manager/v1alpha1/marshalling.gen.js +143 -0
  25. package/dist/api/key_manager/v1alpha1/types.gen.d.ts +268 -0
  26. package/dist/api/llm_inference/v1beta1/api.gen.cjs +1 -1
  27. package/dist/api/llm_inference/v1beta1/api.gen.d.ts +3 -3
  28. package/dist/api/llm_inference/v1beta1/api.gen.js +1 -1
  29. package/dist/api/llm_inference/v1beta1/types.gen.d.ts +4 -4
  30. package/dist/api/rdb/v1/index.gen.d.ts +1 -1
  31. package/dist/api/rdb/v1/marshalling.gen.cjs +15 -0
  32. package/dist/api/rdb/v1/marshalling.gen.js +15 -0
  33. package/dist/api/rdb/v1/types.gen.d.ts +7 -0
  34. package/dist/index.cjs +30 -28
  35. package/dist/index.js +30 -28
  36. package/dist/scw/constants.cjs +1 -1
  37. package/dist/scw/constants.d.ts +2 -2
  38. package/dist/scw/constants.js +1 -1
  39. package/node_modules/@scaleway/random-name/CHANGELOG.md +24 -0
  40. package/node_modules/@scaleway/random-name/dist/index.cjs +599 -0
  41. package/node_modules/@scaleway/random-name/dist/index.d.ts +1 -2
  42. package/node_modules/@scaleway/random-name/dist/index.js +595 -6
  43. package/node_modules/@scaleway/random-name/package.json +21 -6
  44. package/node_modules/@scaleway/random-name/tsconfig.build.json +16 -0
  45. package/node_modules/@scaleway/random-name/tsconfig.json +4 -0
  46. package/node_modules/@scaleway/random-name/vite.config.ts +10 -0
  47. package/package.json +3 -3
@@ -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
  };
@@ -1,4 +1,4 @@
1
1
  export { API } from './api.gen';
2
2
  export * from './content.gen';
3
- export type { ACLRule, ACLRuleAction, ACLRuleDirection, ACLRuleProtocol, ACLRuleRequest, AddInstanceACLRulesRequest, AddInstanceACLRulesResponse, AddInstanceSettingsRequest, AddInstanceSettingsResponse, ApplyInstanceMaintenanceRequest, BackupSchedule, CloneInstanceRequest, CreateDatabaseBackupRequest, CreateDatabaseRequest, CreateEndpointRequest, CreateInstanceFromSnapshotRequest, CreateInstanceRequest, CreateReadReplicaEndpointRequest, CreateReadReplicaRequest, CreateSnapshotRequest, CreateUserRequest, Database, DatabaseBackup, DatabaseBackupStatus, DatabaseEngine, DeleteDatabaseBackupRequest, DeleteDatabaseRequest, DeleteEndpointRequest, DeleteInstanceACLRulesRequest, DeleteInstanceACLRulesResponse, DeleteInstanceRequest, DeleteInstanceSettingsRequest, DeleteInstanceSettingsResponse, DeleteReadReplicaRequest, DeleteSnapshotRequest, DeleteUserRequest, Endpoint, EndpointDirectAccessDetails, EndpointLoadBalancerDetails, EndpointPrivateNetworkDetails, EndpointPrivateNetworkDetailsProvisioningMode, EndpointSpec, EndpointSpecLoadBalancer, EndpointSpecPrivateNetwork, EndpointSpecPrivateNetworkIpamConfig, EngineSetting, EngineSettingPropertyType, EngineVersion, ExportDatabaseBackupRequest, GetDatabaseBackupRequest, GetEndpointRequest, GetInstanceCertificateRequest, GetInstanceLogRequest, GetInstanceMetricsRequest, GetInstanceRequest, GetReadReplicaRequest, GetSnapshotRequest, Instance, InstanceLog, InstanceLogStatus, InstanceMetrics, InstanceSetting, InstanceStatus, ListDatabaseBackupsRequest, ListDatabaseBackupsRequestOrderBy, ListDatabaseBackupsResponse, ListDatabaseEnginesRequest, ListDatabaseEnginesResponse, ListDatabasesRequest, ListDatabasesRequestOrderBy, ListDatabasesResponse, ListInstanceACLRulesRequest, ListInstanceACLRulesResponse, ListInstanceLogsDetailsRequest, ListInstanceLogsDetailsResponse, ListInstanceLogsDetailsResponseInstanceLogDetail, ListInstanceLogsRequest, ListInstanceLogsRequestOrderBy, ListInstanceLogsResponse, ListInstancesRequest, ListInstancesRequestOrderBy, ListInstancesResponse, ListNodeTypesRequest, ListNodeTypesResponse, ListPrivilegesRequest, ListPrivilegesRequestOrderBy, ListPrivilegesResponse, ListSnapshotsRequest, ListSnapshotsRequestOrderBy, ListSnapshotsResponse, ListUsersRequest, ListUsersRequestOrderBy, ListUsersResponse, LogsPolicy, Maintenance, MaintenanceStatus, MigrateEndpointRequest, NodeType, NodeTypeGeneration, NodeTypeStock, NodeTypeVolumeConstraintSizes, NodeTypeVolumeType, Permission, PrepareInstanceLogsRequest, PrepareInstanceLogsResponse, Privilege, PromoteReadReplicaRequest, PurgeInstanceLogsRequest, ReadReplica, ReadReplicaEndpointSpec, ReadReplicaEndpointSpecDirectAccess, ReadReplicaEndpointSpecPrivateNetwork, ReadReplicaEndpointSpecPrivateNetworkIpamConfig, ReadReplicaStatus, RenewInstanceCertificateRequest, ResetReadReplicaRequest, RestartInstanceRequest, RestoreDatabaseBackupRequest, SetInstanceACLRulesRequest, SetInstanceACLRulesResponse, SetInstanceSettingsRequest, SetInstanceSettingsResponse, SetPrivilegeRequest, Snapshot, SnapshotStatus, SnapshotVolumeType, StorageClass, UpdateDatabaseBackupRequest, UpdateInstanceRequest, UpdateSnapshotRequest, UpdateUserRequest, UpgradableVersion, UpgradeInstanceRequest, UpgradeInstanceRequestMajorUpgradeWorkflow, User, Volume, VolumeType, } from './types.gen';
3
+ export type { ACLRule, ACLRuleAction, ACLRuleDirection, ACLRuleProtocol, ACLRuleRequest, AddInstanceACLRulesRequest, AddInstanceACLRulesResponse, AddInstanceSettingsRequest, AddInstanceSettingsResponse, ApplyInstanceMaintenanceRequest, BackupSchedule, CloneInstanceRequest, CreateDatabaseBackupRequest, CreateDatabaseRequest, CreateEndpointRequest, CreateInstanceFromSnapshotRequest, CreateInstanceRequest, CreateReadReplicaEndpointRequest, CreateReadReplicaRequest, CreateSnapshotRequest, CreateUserRequest, Database, DatabaseBackup, DatabaseBackupStatus, DatabaseEngine, DeleteDatabaseBackupRequest, DeleteDatabaseRequest, DeleteEndpointRequest, DeleteInstanceACLRulesRequest, DeleteInstanceACLRulesResponse, DeleteInstanceRequest, DeleteInstanceSettingsRequest, DeleteInstanceSettingsResponse, DeleteReadReplicaRequest, DeleteSnapshotRequest, DeleteUserRequest, EncryptionAtRest, Endpoint, EndpointDirectAccessDetails, EndpointLoadBalancerDetails, EndpointPrivateNetworkDetails, EndpointPrivateNetworkDetailsProvisioningMode, EndpointSpec, EndpointSpecLoadBalancer, EndpointSpecPrivateNetwork, EndpointSpecPrivateNetworkIpamConfig, EngineSetting, EngineSettingPropertyType, EngineVersion, ExportDatabaseBackupRequest, GetDatabaseBackupRequest, GetEndpointRequest, GetInstanceCertificateRequest, GetInstanceLogRequest, GetInstanceMetricsRequest, GetInstanceRequest, GetReadReplicaRequest, GetSnapshotRequest, Instance, InstanceLog, InstanceLogStatus, InstanceMetrics, InstanceSetting, InstanceStatus, ListDatabaseBackupsRequest, ListDatabaseBackupsRequestOrderBy, ListDatabaseBackupsResponse, ListDatabaseEnginesRequest, ListDatabaseEnginesResponse, ListDatabasesRequest, ListDatabasesRequestOrderBy, ListDatabasesResponse, ListInstanceACLRulesRequest, ListInstanceACLRulesResponse, ListInstanceLogsDetailsRequest, ListInstanceLogsDetailsResponse, ListInstanceLogsDetailsResponseInstanceLogDetail, ListInstanceLogsRequest, ListInstanceLogsRequestOrderBy, ListInstanceLogsResponse, ListInstancesRequest, ListInstancesRequestOrderBy, ListInstancesResponse, ListNodeTypesRequest, ListNodeTypesResponse, ListPrivilegesRequest, ListPrivilegesRequestOrderBy, ListPrivilegesResponse, ListSnapshotsRequest, ListSnapshotsRequestOrderBy, ListSnapshotsResponse, ListUsersRequest, ListUsersRequestOrderBy, ListUsersResponse, LogsPolicy, Maintenance, MaintenanceStatus, MigrateEndpointRequest, NodeType, NodeTypeGeneration, NodeTypeStock, NodeTypeVolumeConstraintSizes, NodeTypeVolumeType, Permission, PrepareInstanceLogsRequest, PrepareInstanceLogsResponse, Privilege, PromoteReadReplicaRequest, PurgeInstanceLogsRequest, ReadReplica, ReadReplicaEndpointSpec, ReadReplicaEndpointSpecDirectAccess, ReadReplicaEndpointSpecPrivateNetwork, ReadReplicaEndpointSpecPrivateNetworkIpamConfig, ReadReplicaStatus, RenewInstanceCertificateRequest, ResetReadReplicaRequest, RestartInstanceRequest, RestoreDatabaseBackupRequest, SetInstanceACLRulesRequest, SetInstanceACLRulesResponse, SetInstanceSettingsRequest, SetInstanceSettingsResponse, SetPrivilegeRequest, Snapshot, SnapshotStatus, SnapshotVolumeType, StorageClass, UpdateDatabaseBackupRequest, UpdateInstanceRequest, UpdateSnapshotRequest, UpdateUserRequest, UpgradableVersion, UpgradeInstanceRequest, UpgradeInstanceRequestMajorUpgradeWorkflow, User, Volume, VolumeType, } from './types.gen';
4
4
  export * as ValidationRules from './validation-rules.gen';
@@ -145,6 +145,16 @@ const unmarshalBackupSchedule = (data) => {
145
145
  retention: data.retention
146
146
  };
147
147
  };
148
+ const unmarshalEncryptionAtRest = (data) => {
149
+ if (!json.isJSONObject(data)) {
150
+ throw new TypeError(
151
+ `Unmarshalling the type 'EncryptionAtRest' failed as data isn't a dictionary.`
152
+ );
153
+ }
154
+ return {
155
+ enabled: data.enabled
156
+ };
157
+ };
148
158
  const unmarshalInstanceSetting = (data) => {
149
159
  if (!json.isJSONObject(data)) {
150
160
  throw new TypeError(
@@ -202,6 +212,7 @@ const unmarshalInstance = (data) => {
202
212
  backupSameRegion: data.backup_same_region,
203
213
  backupSchedule: data.backup_schedule ? unmarshalBackupSchedule(data.backup_schedule) : void 0,
204
214
  createdAt: marshalling.unmarshalDate(data.created_at),
215
+ encryption: data.encryption ? unmarshalEncryptionAtRest(data.encryption) : void 0,
205
216
  endpoint: data.endpoint ? unmarshalEndpoint(data.endpoint) : void 0,
206
217
  endpoints: marshalling.unmarshalArrayOfObject(data.endpoints, unmarshalEndpoint),
207
218
  engine: data.engine,
@@ -695,9 +706,13 @@ const marshalCreateInstanceFromSnapshotRequest = (request, defaults) => ({
695
706
  is_ha_cluster: request.isHaCluster,
696
707
  node_type: request.nodeType
697
708
  });
709
+ const marshalEncryptionAtRest = (request, defaults) => ({
710
+ enabled: request.enabled
711
+ });
698
712
  const marshalCreateInstanceRequest = (request, defaults) => ({
699
713
  backup_same_region: request.backupSameRegion,
700
714
  disable_backup: request.disableBackup,
715
+ encryption: request.encryption !== void 0 ? marshalEncryptionAtRest(request.encryption) : void 0,
701
716
  engine: request.engine,
702
717
  init_endpoints: request.initEndpoints !== void 0 ? request.initEndpoints.map((elt) => marshalEndpointSpec(elt)) : void 0,
703
718
  init_settings: request.initSettings !== void 0 ? request.initSettings.map((elt) => marshalInstanceSetting(elt)) : void 0,
@@ -143,6 +143,16 @@ const unmarshalBackupSchedule = (data) => {
143
143
  retention: data.retention
144
144
  };
145
145
  };
146
+ const unmarshalEncryptionAtRest = (data) => {
147
+ if (!isJSONObject(data)) {
148
+ throw new TypeError(
149
+ `Unmarshalling the type 'EncryptionAtRest' failed as data isn't a dictionary.`
150
+ );
151
+ }
152
+ return {
153
+ enabled: data.enabled
154
+ };
155
+ };
146
156
  const unmarshalInstanceSetting = (data) => {
147
157
  if (!isJSONObject(data)) {
148
158
  throw new TypeError(
@@ -200,6 +210,7 @@ const unmarshalInstance = (data) => {
200
210
  backupSameRegion: data.backup_same_region,
201
211
  backupSchedule: data.backup_schedule ? unmarshalBackupSchedule(data.backup_schedule) : void 0,
202
212
  createdAt: unmarshalDate(data.created_at),
213
+ encryption: data.encryption ? unmarshalEncryptionAtRest(data.encryption) : void 0,
203
214
  endpoint: data.endpoint ? unmarshalEndpoint(data.endpoint) : void 0,
204
215
  endpoints: unmarshalArrayOfObject(data.endpoints, unmarshalEndpoint),
205
216
  engine: data.engine,
@@ -693,9 +704,13 @@ const marshalCreateInstanceFromSnapshotRequest = (request, defaults) => ({
693
704
  is_ha_cluster: request.isHaCluster,
694
705
  node_type: request.nodeType
695
706
  });
707
+ const marshalEncryptionAtRest = (request, defaults) => ({
708
+ enabled: request.enabled
709
+ });
696
710
  const marshalCreateInstanceRequest = (request, defaults) => ({
697
711
  backup_same_region: request.backupSameRegion,
698
712
  disable_backup: request.disableBackup,
713
+ encryption: request.encryption !== void 0 ? marshalEncryptionAtRest(request.encryption) : void 0,
699
714
  engine: request.engine,
700
715
  init_endpoints: request.initEndpoints !== void 0 ? request.initEndpoints.map((elt) => marshalEndpointSpec(elt)) : void 0,
701
716
  init_settings: request.initSettings !== void 0 ? request.initSettings.map((elt) => marshalInstanceSetting(elt)) : void 0,
@@ -179,6 +179,9 @@ export interface BackupSchedule {
179
179
  /** Next run of the backup schedule (accurate to 10 minutes). */
180
180
  nextRunAt?: Date;
181
181
  }
182
+ export interface EncryptionAtRest {
183
+ enabled: boolean;
184
+ }
182
185
  export interface InstanceSetting {
183
186
  name: string;
184
187
  value: string;
@@ -421,6 +424,8 @@ export interface Instance {
421
424
  backupSameRegion: boolean;
422
425
  /** List of Database Instance maintenance events. */
423
426
  maintenances: Maintenance[];
427
+ /** Encryption at rest settings for your Database Instance. */
428
+ encryption?: EncryptionAtRest;
424
429
  }
425
430
  export interface NodeType {
426
431
  /** Node Type name identifier. */
@@ -671,6 +676,8 @@ export type CreateInstanceRequest = {
671
676
  * the Database Instance.
672
677
  */
673
678
  backupSameRegion: boolean;
679
+ /** Encryption at rest settings for your Database Instance. */
680
+ encryption?: EncryptionAtRest;
674
681
  };
675
682
  export type CreateReadReplicaEndpointRequest = {
676
683
  /**
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.27.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.27.0";
2
- export declare const userAgent = "scaleway-sdk-js/v2.27.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.27.0";
1
+ const version = "v2.29.0";
2
2
  const userAgent = `scaleway-sdk-js/${version}`;
3
3
  export {
4
4
  userAgent,
@@ -1,5 +1,29 @@
1
1
  # Change Log
2
2
 
3
+ ## 5.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#1960](https://github.com/scaleway/scaleway-lib/pull/1960) [`d034b3c`](https://github.com/scaleway/scaleway-lib/commit/d034b3cda1cac30ce2ed4e95be5a2c79642f8ca4) Thanks [@Slashgear](https://github.com/Slashgear)! - add legacy main attribut for CommonJS export usage
8
+
9
+ ## 5.0.2
10
+
11
+ ### Patch Changes
12
+
13
+ - [#1953](https://github.com/scaleway/scaleway-lib/pull/1953) [`1fddf05`](https://github.com/scaleway/scaleway-lib/commit/1fddf0515851908b094f983b05b3d87af8eef433) Thanks [@philibea](https://github.com/philibea)! - add cjs build
14
+
15
+ ## 5.0.1
16
+
17
+ ### Patch Changes
18
+
19
+ - [#1943](https://github.com/scaleway/scaleway-lib/pull/1943) [`e726def`](https://github.com/scaleway/scaleway-lib/commit/e726def8e0cb4593f800f9acecca51b173ae907a) Thanks [@philibea](https://github.com/philibea)! - Migration from rollup to vite
20
+
21
+ ## 5.0.0
22
+
23
+ ### Major Changes
24
+
25
+ - [#1837](https://github.com/scaleway/scaleway-lib/pull/1837) [`5404963`](https://github.com/scaleway/scaleway-lib/commit/5404963ddd01fafe6ed9753d8324fb19849065ca) Thanks [@philibea](https://github.com/philibea)! - upgrade node version from 14 to 20
26
+
3
27
  ## 4.0.3
4
28
 
5
29
  ### Patch Changes