@scaleway/sdk 2.64.0 → 2.65.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/api/cockpit/v1/api.gen.cjs +19 -1
- package/dist/api/cockpit/v1/api.gen.d.ts +4 -3
- package/dist/api/cockpit/v1/api.gen.js +20 -2
- package/dist/api/cockpit/v1/index.gen.d.ts +1 -1
- package/dist/api/cockpit/v1/marshalling.gen.cjs +13 -0
- package/dist/api/cockpit/v1/marshalling.gen.d.ts +2 -1
- package/dist/api/cockpit/v1/marshalling.gen.js +13 -0
- package/dist/api/cockpit/v1/types.gen.d.ts +50 -31
- package/dist/api/ipam/v1/api.gen.cjs +5 -1
- package/dist/api/ipam/v1/api.gen.d.ts +2 -2
- package/dist/api/ipam/v1/api.gen.js +5 -1
- package/dist/api/ipam/v1/types.gen.d.ts +13 -13
- package/dist/api/key_manager/v1alpha1/api.gen.cjs +41 -37
- package/dist/api/key_manager/v1alpha1/api.gen.d.ts +38 -38
- package/dist/api/key_manager/v1alpha1/api.gen.js +41 -37
- package/dist/api/key_manager/v1alpha1/types.gen.d.ts +31 -30
- package/dist/api/lb/v1/api.gen.cjs +5 -1
- package/dist/api/lb/v1/api.gen.d.ts +3 -3
- package/dist/api/lb/v1/api.gen.js +5 -1
- package/dist/api/lb/v1/types.gen.d.ts +116 -116
- package/dist/api/webhosting/v1/api.gen.cjs +58 -2
- package/dist/api/webhosting/v1/api.gen.d.ts +31 -3
- package/dist/api/webhosting/v1/api.gen.js +60 -4
- package/dist/api/webhosting/v1/content.gen.cjs +4 -0
- package/dist/api/webhosting/v1/content.gen.d.ts +5 -1
- package/dist/api/webhosting/v1/content.gen.js +4 -0
- package/dist/api/webhosting/v1/index.gen.cjs +2 -0
- package/dist/api/webhosting/v1/index.gen.d.ts +1 -1
- package/dist/api/webhosting/v1/index.gen.js +3 -1
- package/dist/api/webhosting/v1/marshalling.gen.cjs +45 -0
- package/dist/api/webhosting/v1/marshalling.gen.d.ts +3 -1
- package/dist/api/webhosting/v1/marshalling.gen.js +45 -0
- package/dist/api/webhosting/v1/types.gen.d.ts +66 -0
- package/dist/api/webhosting/v1alpha1/api.gen.cjs +1 -1
- package/dist/api/webhosting/v1alpha1/api.gen.js +1 -1
- package/dist/scw/constants.cjs +1 -1
- package/dist/scw/constants.d.ts +2 -2
- package/dist/scw/constants.js +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Region } from '../../../bridge';
|
|
1
|
+
import type { Region as ScwRegion } from '../../../bridge';
|
|
2
2
|
export type DataKeyAlgorithmSymmetricEncryption = 'unknown_symmetric_encryption' | 'aes_256_gcm';
|
|
3
3
|
export type KeyAlgorithmSymmetricEncryption = 'unknown_symmetric_encryption' | 'aes_256_gcm';
|
|
4
4
|
export type KeyOrigin = 'unknown_origin' | 'scaleway_kms' | 'external';
|
|
@@ -6,11 +6,11 @@ export type KeyState = 'unknown_state' | 'enabled' | 'disabled' | 'pending_key_m
|
|
|
6
6
|
export type ListKeysRequestOrderBy = 'name_asc' | 'name_desc' | 'created_at_asc' | 'created_at_desc' | 'updated_at_asc' | 'updated_at_desc';
|
|
7
7
|
export interface KeyRotationPolicy {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
* the maximum duration is
|
|
9
|
+
* Time interval between two key rotations. The minimum duration is 24 hours
|
|
10
|
+
* and the maximum duration is 1 year (876000 hours).
|
|
11
11
|
*/
|
|
12
12
|
rotationPeriod?: string;
|
|
13
|
-
/**
|
|
13
|
+
/** Timestamp indicating the next scheduled rotation. */
|
|
14
14
|
nextRotationAt?: Date;
|
|
15
15
|
}
|
|
16
16
|
export interface KeyUsage {
|
|
@@ -30,14 +30,14 @@ export interface Key {
|
|
|
30
30
|
/** Name of the key. */
|
|
31
31
|
name: string;
|
|
32
32
|
/**
|
|
33
|
-
* Keys with a usage set to `symmetric_encryption`
|
|
34
|
-
*
|
|
35
|
-
* AES-256-GCM
|
|
33
|
+
* Keys with a usage set to `symmetric_encryption` can encrypt and decrypt
|
|
34
|
+
* data using the `AES-256-GCM` key algorithm. Key Manager currently only
|
|
35
|
+
* supports `AES-256-GCM`.
|
|
36
36
|
*/
|
|
37
37
|
usage?: KeyUsage;
|
|
38
|
-
/** See the `Key.State` enum for a description of values. */
|
|
38
|
+
/** See the `Key.State` enum for a description of possible values. */
|
|
39
39
|
state: KeyState;
|
|
40
|
-
/** The rotation count tracks the
|
|
40
|
+
/** The rotation count tracks the number of times the key has been rotated. */
|
|
41
41
|
rotationCount: number;
|
|
42
42
|
/** Key creation date. */
|
|
43
43
|
createdAt?: Date;
|
|
@@ -57,15 +57,15 @@ export interface Key {
|
|
|
57
57
|
rotationPolicy?: KeyRotationPolicy;
|
|
58
58
|
/** Refer to the `Key.Origin` enum for a description of values. */
|
|
59
59
|
origin: KeyOrigin;
|
|
60
|
-
/** Region
|
|
61
|
-
region:
|
|
60
|
+
/** Region where the key is stored. */
|
|
61
|
+
region: ScwRegion;
|
|
62
62
|
}
|
|
63
63
|
export type CreateKeyRequest = {
|
|
64
64
|
/**
|
|
65
65
|
* Region to target. If none is passed will use default region from the
|
|
66
66
|
* config.
|
|
67
67
|
*/
|
|
68
|
-
region?:
|
|
68
|
+
region?: ScwRegion;
|
|
69
69
|
/** ID of the Project containing the key. */
|
|
70
70
|
projectId?: string;
|
|
71
71
|
/** (Optional) Name of the key. */
|
|
@@ -89,7 +89,7 @@ export type CreateKeyRequest = {
|
|
|
89
89
|
export interface DataKey {
|
|
90
90
|
/** ID of the data encryption key. */
|
|
91
91
|
keyId: string;
|
|
92
|
-
/** Symmetric encryption algorithm of the data encryption key. */
|
|
92
|
+
/** Symmetric encryption algorithm of the data encryption key (`AES-256-GCM`). */
|
|
93
93
|
algorithm: DataKeyAlgorithmSymmetricEncryption;
|
|
94
94
|
/**
|
|
95
95
|
* Your data encryption key's ciphertext can be stored safely. It can only be
|
|
@@ -110,7 +110,7 @@ export type DecryptRequest = {
|
|
|
110
110
|
* Region to target. If none is passed will use default region from the
|
|
111
111
|
* config.
|
|
112
112
|
*/
|
|
113
|
-
region?:
|
|
113
|
+
region?: ScwRegion;
|
|
114
114
|
/** ID of the key to decrypt. */
|
|
115
115
|
keyId: string;
|
|
116
116
|
/** Data size must be between 1 and 131071 bytes. */
|
|
@@ -134,7 +134,7 @@ export type DeleteKeyMaterialRequest = {
|
|
|
134
134
|
* Region to target. If none is passed will use default region from the
|
|
135
135
|
* config.
|
|
136
136
|
*/
|
|
137
|
-
region?:
|
|
137
|
+
region?: ScwRegion;
|
|
138
138
|
/** ID of the key of which to delete the key material. */
|
|
139
139
|
keyId: string;
|
|
140
140
|
};
|
|
@@ -143,7 +143,7 @@ export type DeleteKeyRequest = {
|
|
|
143
143
|
* Region to target. If none is passed will use default region from the
|
|
144
144
|
* config.
|
|
145
145
|
*/
|
|
146
|
-
region?:
|
|
146
|
+
region?: ScwRegion;
|
|
147
147
|
/** ID of the key to delete. */
|
|
148
148
|
keyId: string;
|
|
149
149
|
};
|
|
@@ -152,7 +152,7 @@ export type DisableKeyRequest = {
|
|
|
152
152
|
* Region to target. If none is passed will use default region from the
|
|
153
153
|
* config.
|
|
154
154
|
*/
|
|
155
|
-
region?:
|
|
155
|
+
region?: ScwRegion;
|
|
156
156
|
/** ID of the key to disable. */
|
|
157
157
|
keyId: string;
|
|
158
158
|
};
|
|
@@ -161,7 +161,7 @@ export type EnableKeyRequest = {
|
|
|
161
161
|
* Region to target. If none is passed will use default region from the
|
|
162
162
|
* config.
|
|
163
163
|
*/
|
|
164
|
-
region?:
|
|
164
|
+
region?: ScwRegion;
|
|
165
165
|
/** ID of the key to enable. */
|
|
166
166
|
keyId: string;
|
|
167
167
|
};
|
|
@@ -170,7 +170,7 @@ export type EncryptRequest = {
|
|
|
170
170
|
* Region to target. If none is passed will use default region from the
|
|
171
171
|
* config.
|
|
172
172
|
*/
|
|
173
|
-
region?:
|
|
173
|
+
region?: ScwRegion;
|
|
174
174
|
/** ID of the key to encrypt. */
|
|
175
175
|
keyId: string;
|
|
176
176
|
/** Data size must be between 1 and 65535 bytes. */
|
|
@@ -192,7 +192,7 @@ export type GenerateDataKeyRequest = {
|
|
|
192
192
|
* Region to target. If none is passed will use default region from the
|
|
193
193
|
* config.
|
|
194
194
|
*/
|
|
195
|
-
region?:
|
|
195
|
+
region?: ScwRegion;
|
|
196
196
|
/** ID of the key. */
|
|
197
197
|
keyId: string;
|
|
198
198
|
/**
|
|
@@ -212,7 +212,7 @@ export type GetKeyRequest = {
|
|
|
212
212
|
* Region to target. If none is passed will use default region from the
|
|
213
213
|
* config.
|
|
214
214
|
*/
|
|
215
|
-
region?:
|
|
215
|
+
region?: ScwRegion;
|
|
216
216
|
/** ID of the key to target. */
|
|
217
217
|
keyId: string;
|
|
218
218
|
};
|
|
@@ -221,8 +221,8 @@ export type ImportKeyMaterialRequest = {
|
|
|
221
221
|
* Region to target. If none is passed will use default region from the
|
|
222
222
|
* config.
|
|
223
223
|
*/
|
|
224
|
-
region?:
|
|
225
|
-
/** The key's origin must be
|
|
224
|
+
region?: ScwRegion;
|
|
225
|
+
/** The key's origin must be `external`. */
|
|
226
226
|
keyId: string;
|
|
227
227
|
/**
|
|
228
228
|
* The key material The key material is a random sequence of bytes used to
|
|
@@ -230,8 +230,9 @@ export type ImportKeyMaterialRequest = {
|
|
|
230
230
|
*/
|
|
231
231
|
keyMaterial: string;
|
|
232
232
|
/**
|
|
233
|
-
* A salt
|
|
234
|
-
*
|
|
233
|
+
* A salt is random data added to key material to ensure unique derived keys,
|
|
234
|
+
* even if the input is similar. It helps strengthen security when the key
|
|
235
|
+
* material has low randomness (low entropy).
|
|
235
236
|
*/
|
|
236
237
|
salt?: string;
|
|
237
238
|
};
|
|
@@ -240,7 +241,7 @@ export type ListKeysRequest = {
|
|
|
240
241
|
* Region to target. If none is passed will use default region from the
|
|
241
242
|
* config.
|
|
242
243
|
*/
|
|
243
|
-
region?:
|
|
244
|
+
region?: ScwRegion;
|
|
244
245
|
/** (Optional) Filter by Organization ID. */
|
|
245
246
|
organizationId?: string;
|
|
246
247
|
/** (Optional) Filter by Project ID. */
|
|
@@ -264,7 +265,7 @@ export type ProtectKeyRequest = {
|
|
|
264
265
|
* Region to target. If none is passed will use default region from the
|
|
265
266
|
* config.
|
|
266
267
|
*/
|
|
267
|
-
region?:
|
|
268
|
+
region?: ScwRegion;
|
|
268
269
|
/** ID of the key to apply key protection to. */
|
|
269
270
|
keyId: string;
|
|
270
271
|
};
|
|
@@ -273,7 +274,7 @@ export type RotateKeyRequest = {
|
|
|
273
274
|
* Region to target. If none is passed will use default region from the
|
|
274
275
|
* config.
|
|
275
276
|
*/
|
|
276
|
-
region?:
|
|
277
|
+
region?: ScwRegion;
|
|
277
278
|
/** ID of the key to rotate. */
|
|
278
279
|
keyId: string;
|
|
279
280
|
};
|
|
@@ -282,7 +283,7 @@ export type UnprotectKeyRequest = {
|
|
|
282
283
|
* Region to target. If none is passed will use default region from the
|
|
283
284
|
* config.
|
|
284
285
|
*/
|
|
285
|
-
region?:
|
|
286
|
+
region?: ScwRegion;
|
|
286
287
|
/** ID of the key to remove key protection from. */
|
|
287
288
|
keyId: string;
|
|
288
289
|
};
|
|
@@ -291,7 +292,7 @@ export type UpdateKeyRequest = {
|
|
|
291
292
|
* Region to target. If none is passed will use default region from the
|
|
292
293
|
* config.
|
|
293
294
|
*/
|
|
294
|
-
region?:
|
|
295
|
+
region?: ScwRegion;
|
|
295
296
|
/** ID of the key to update. */
|
|
296
297
|
keyId: string;
|
|
297
298
|
/** (Optional) Updated name of the key. */
|
|
@@ -1078,7 +1078,11 @@ class ZonedAPI extends api.API {
|
|
|
1078
1078
|
}
|
|
1079
1079
|
class API extends api.API {
|
|
1080
1080
|
/** Lists the available regions of the API. */
|
|
1081
|
-
static LOCALITIES = [
|
|
1081
|
+
static LOCALITIES = [
|
|
1082
|
+
"fr-par",
|
|
1083
|
+
"nl-ams",
|
|
1084
|
+
"pl-waw"
|
|
1085
|
+
];
|
|
1082
1086
|
pageOfListLbs = (request = {}) => this.client.fetch(
|
|
1083
1087
|
{
|
|
1084
1088
|
method: "GET",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { API as ParentAPI } from '../../../bridge';
|
|
2
|
-
import type { Region
|
|
2
|
+
import type { Region as ScwRegion, Zone as ScwZone, WaitForOptions } from '../../../bridge';
|
|
3
3
|
import type { Acl, AddBackendServersRequest, AttachPrivateNetworkRequest, Backend, Certificate, CreateAclRequest, CreateBackendRequest, CreateCertificateRequest, CreateFrontendRequest, CreateIpRequest, CreateLbRequest, CreateRouteRequest, CreateSubscriberRequest, DeleteAclRequest, DeleteBackendRequest, DeleteCertificateRequest, DeleteFrontendRequest, DeleteLbRequest, DeleteRouteRequest, DeleteSubscriberRequest, DetachPrivateNetworkRequest, Frontend, GetAclRequest, GetBackendRequest, GetCertificateRequest, GetFrontendRequest, GetIpRequest, GetLbRequest, GetLbStatsRequest, GetRouteRequest, GetSubscriberRequest, HealthCheck, Ip, Lb, LbStats, ListAclResponse, ListAclsRequest, ListBackendStatsRequest, ListBackendStatsResponse, ListBackendsRequest, ListBackendsResponse, ListCertificatesRequest, ListCertificatesResponse, ListFrontendsRequest, ListFrontendsResponse, ListIPsRequest, ListIpsResponse, ListLbPrivateNetworksRequest, ListLbPrivateNetworksResponse, ListLbTypesRequest, ListLbTypesResponse, ListLbsRequest, ListLbsResponse, ListRoutesRequest, ListRoutesResponse, ListSubscriberRequest, ListSubscriberResponse, MigrateLbRequest, PrivateNetwork, ReleaseIpRequest, RemoveBackendServersRequest, Route, SetAclsResponse, SetBackendServersRequest, SubscribeToLbRequest, Subscriber, UnsubscribeFromLbRequest, UpdateAclRequest, UpdateBackendRequest, UpdateCertificateRequest, UpdateFrontendRequest, UpdateHealthCheckRequest, UpdateIpRequest, UpdateLbRequest, UpdateRouteRequest, UpdateSubscriberRequest, ZonedApiAddBackendServersRequest, ZonedApiAttachPrivateNetworkRequest, ZonedApiCreateAclRequest, ZonedApiCreateBackendRequest, ZonedApiCreateCertificateRequest, ZonedApiCreateFrontendRequest, ZonedApiCreateIpRequest, ZonedApiCreateLbRequest, ZonedApiCreateRouteRequest, ZonedApiCreateSubscriberRequest, ZonedApiDeleteAclRequest, ZonedApiDeleteBackendRequest, ZonedApiDeleteCertificateRequest, ZonedApiDeleteFrontendRequest, ZonedApiDeleteLbRequest, ZonedApiDeleteRouteRequest, ZonedApiDeleteSubscriberRequest, ZonedApiDetachPrivateNetworkRequest, ZonedApiGetAclRequest, ZonedApiGetBackendRequest, ZonedApiGetCertificateRequest, ZonedApiGetFrontendRequest, ZonedApiGetIpRequest, ZonedApiGetLbRequest, ZonedApiGetLbStatsRequest, ZonedApiGetRouteRequest, ZonedApiGetSubscriberRequest, ZonedApiListAclsRequest, ZonedApiListBackendStatsRequest, ZonedApiListBackendsRequest, ZonedApiListCertificatesRequest, ZonedApiListFrontendsRequest, ZonedApiListIPsRequest, ZonedApiListLbPrivateNetworksRequest, ZonedApiListLbTypesRequest, ZonedApiListLbsRequest, ZonedApiListRoutesRequest, ZonedApiListSubscriberRequest, ZonedApiMigrateLbRequest, ZonedApiReleaseIpRequest, ZonedApiRemoveBackendServersRequest, ZonedApiSetAclsRequest, ZonedApiSetBackendServersRequest, ZonedApiSubscribeToLbRequest, ZonedApiUnsubscribeFromLbRequest, ZonedApiUpdateAclRequest, ZonedApiUpdateBackendRequest, ZonedApiUpdateCertificateRequest, ZonedApiUpdateFrontendRequest, ZonedApiUpdateHealthCheckRequest, ZonedApiUpdateIpRequest, ZonedApiUpdateLbRequest, ZonedApiUpdateRouteRequest, ZonedApiUpdateSubscriberRequest } from './types.gen';
|
|
4
4
|
/**
|
|
5
5
|
* Load Balancer API.
|
|
@@ -8,7 +8,7 @@ import type { Acl, AddBackendServersRequest, AttachPrivateNetworkRequest, Backen
|
|
|
8
8
|
*/
|
|
9
9
|
export declare class ZonedAPI extends ParentAPI {
|
|
10
10
|
/** Lists the available zones of the API. */
|
|
11
|
-
static readonly LOCALITIES:
|
|
11
|
+
static readonly LOCALITIES: ScwZone[];
|
|
12
12
|
protected pageOfListLbs: (request?: Readonly<ZonedApiListLbsRequest>) => Promise<ListLbsResponse>;
|
|
13
13
|
/**
|
|
14
14
|
* List Load Balancers. List all Load Balancers in the specified zone, for a
|
|
@@ -562,7 +562,7 @@ export declare class ZonedAPI extends ParentAPI {
|
|
|
562
562
|
*/
|
|
563
563
|
export declare class API extends ParentAPI {
|
|
564
564
|
/** Lists the available regions of the API. */
|
|
565
|
-
static readonly LOCALITIES:
|
|
565
|
+
static readonly LOCALITIES: ScwRegion[];
|
|
566
566
|
protected pageOfListLbs: (request?: Readonly<ListLbsRequest>) => Promise<ListLbsResponse>;
|
|
567
567
|
/**
|
|
568
568
|
* List load balancers.
|
|
@@ -1076,7 +1076,11 @@ class ZonedAPI extends API$1 {
|
|
|
1076
1076
|
}
|
|
1077
1077
|
class API extends API$1 {
|
|
1078
1078
|
/** Lists the available regions of the API. */
|
|
1079
|
-
static LOCALITIES = [
|
|
1079
|
+
static LOCALITIES = [
|
|
1080
|
+
"fr-par",
|
|
1081
|
+
"nl-ams",
|
|
1082
|
+
"pl-waw"
|
|
1083
|
+
];
|
|
1080
1084
|
pageOfListLbs = (request = {}) => this.client.fetch(
|
|
1081
1085
|
{
|
|
1082
1086
|
method: "GET",
|