@scaleway/sdk 2.65.0 → 2.67.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 (100) hide show
  1. package/dist/api/applesilicon/v1alpha1/index.gen.d.ts +1 -1
  2. package/dist/api/applesilicon/v1alpha1/marshalling.gen.cjs +17 -0
  3. package/dist/api/applesilicon/v1alpha1/marshalling.gen.js +17 -0
  4. package/dist/api/applesilicon/v1alpha1/types.gen.d.ts +21 -0
  5. package/dist/api/audit_trail/v1alpha1/api.gen.d.ts +2 -2
  6. package/dist/api/audit_trail/v1alpha1/index.gen.d.ts +1 -1
  7. package/dist/api/audit_trail/v1alpha1/marshalling.gen.cjs +9 -0
  8. package/dist/api/audit_trail/v1alpha1/marshalling.gen.js +9 -0
  9. package/dist/api/audit_trail/v1alpha1/types.gen.d.ts +24 -16
  10. package/dist/api/baremetal/v1/api.gen.d.ts +3 -3
  11. package/dist/api/baremetal/v1/types.gen.d.ts +33 -33
  12. package/dist/api/baremetal/v3/api.gen.d.ts +2 -2
  13. package/dist/api/baremetal/v3/types.gen.d.ts +5 -5
  14. package/dist/api/block/v1alpha1/api.gen.d.ts +2 -2
  15. package/dist/api/block/v1alpha1/types.gen.d.ts +17 -17
  16. package/dist/api/cockpit/v1/api.gen.cjs +14 -17
  17. package/dist/api/cockpit/v1/api.gen.d.ts +6 -9
  18. package/dist/api/cockpit/v1/api.gen.js +15 -18
  19. package/dist/api/cockpit/v1/index.gen.d.ts +1 -1
  20. package/dist/api/cockpit/v1/marshalling.gen.cjs +29 -26
  21. package/dist/api/cockpit/v1/marshalling.gen.d.ts +2 -2
  22. package/dist/api/cockpit/v1/marshalling.gen.js +29 -26
  23. package/dist/api/cockpit/v1/types.gen.d.ts +49 -34
  24. package/dist/api/cockpit/v1/validation-rules.gen.cjs +0 -10
  25. package/dist/api/cockpit/v1/validation-rules.gen.d.ts +0 -9
  26. package/dist/api/cockpit/v1/validation-rules.gen.js +0 -10
  27. package/dist/api/container/v1beta1/api.gen.cjs +5 -1
  28. package/dist/api/container/v1beta1/api.gen.d.ts +2 -2
  29. package/dist/api/container/v1beta1/api.gen.js +5 -1
  30. package/dist/api/container/v1beta1/types.gen.d.ts +32 -32
  31. package/dist/api/dedibox/v1/api.gen.d.ts +2 -2
  32. package/dist/api/dedibox/v1/types.gen.d.ts +51 -51
  33. package/dist/api/edge_services/v1alpha1/index.gen.d.ts +1 -1
  34. package/dist/api/edge_services/v1alpha1/marshalling.gen.cjs +21 -2
  35. package/dist/api/edge_services/v1alpha1/marshalling.gen.js +22 -3
  36. package/dist/api/edge_services/v1alpha1/types.gen.d.ts +34 -0
  37. package/dist/api/flexibleip/v1alpha1/api.gen.d.ts +2 -2
  38. package/dist/api/flexibleip/v1alpha1/types.gen.d.ts +14 -14
  39. package/dist/api/function/v1beta1/api.gen.cjs +5 -1
  40. package/dist/api/function/v1beta1/api.gen.d.ts +2 -2
  41. package/dist/api/function/v1beta1/api.gen.js +5 -1
  42. package/dist/api/function/v1beta1/types.gen.d.ts +35 -35
  43. package/dist/api/iot/v1/api.gen.d.ts +2 -2
  44. package/dist/api/iot/v1/types.gen.d.ts +38 -38
  45. package/dist/api/jobs/v1alpha1/api.gen.cjs +5 -1
  46. package/dist/api/jobs/v1alpha1/api.gen.d.ts +2 -2
  47. package/dist/api/jobs/v1alpha1/api.gen.js +5 -1
  48. package/dist/api/jobs/v1alpha1/types.gen.d.ts +19 -19
  49. package/dist/api/k8s/v1/api.gen.cjs +5 -1
  50. package/dist/api/k8s/v1/api.gen.d.ts +2 -2
  51. package/dist/api/k8s/v1/api.gen.js +5 -1
  52. package/dist/api/k8s/v1/marshalling.gen.cjs +1 -0
  53. package/dist/api/k8s/v1/marshalling.gen.js +1 -0
  54. package/dist/api/k8s/v1/types.gen.d.ts +42 -41
  55. package/dist/api/lb/v1/marshalling.gen.cjs +5 -0
  56. package/dist/api/lb/v1/marshalling.gen.js +5 -0
  57. package/dist/api/lb/v1/types.gen.d.ts +25 -0
  58. package/dist/api/marketplace/v2/types.gen.d.ts +3 -3
  59. package/dist/api/mnq/v1beta1/api.gen.d.ts +4 -4
  60. package/dist/api/mnq/v1beta1/types.gen.d.ts +31 -31
  61. package/dist/api/mongodb/v1alpha1/api.gen.d.ts +3 -3
  62. package/dist/api/mongodb/v1alpha1/types.gen.d.ts +24 -24
  63. package/dist/api/rdb/v1/api.gen.cjs +5 -1
  64. package/dist/api/rdb/v1/api.gen.d.ts +2 -2
  65. package/dist/api/rdb/v1/api.gen.js +5 -1
  66. package/dist/api/rdb/v1/types.gen.d.ts +67 -67
  67. package/dist/api/redis/v1/api.gen.d.ts +2 -2
  68. package/dist/api/redis/v1/types.gen.d.ts +28 -28
  69. package/dist/api/registry/v1/api.gen.cjs +5 -1
  70. package/dist/api/registry/v1/api.gen.d.ts +2 -2
  71. package/dist/api/registry/v1/api.gen.js +5 -1
  72. package/dist/api/registry/v1/types.gen.d.ts +14 -14
  73. package/dist/api/secret/v1beta1/api.gen.cjs +38 -1
  74. package/dist/api/secret/v1beta1/api.gen.d.ts +19 -3
  75. package/dist/api/secret/v1beta1/api.gen.js +38 -1
  76. package/dist/api/secret/v1beta1/index.gen.d.ts +1 -1
  77. package/dist/api/secret/v1beta1/marshalling.gen.cjs +2 -0
  78. package/dist/api/secret/v1beta1/marshalling.gen.js +2 -0
  79. package/dist/api/secret/v1beta1/types.gen.d.ts +52 -25
  80. package/dist/api/serverless_sqldb/v1alpha1/api.gen.d.ts +2 -2
  81. package/dist/api/serverless_sqldb/v1alpha1/types.gen.d.ts +12 -12
  82. package/dist/api/tem/v1alpha1/api.gen.d.ts +2 -2
  83. package/dist/api/tem/v1alpha1/types.gen.d.ts +25 -25
  84. package/dist/api/vpcgw/v1/api.gen.cjs +6 -0
  85. package/dist/api/vpcgw/v1/api.gen.d.ts +4 -3
  86. package/dist/api/vpcgw/v1/api.gen.js +6 -0
  87. package/dist/api/vpcgw/v1/index.gen.d.ts +1 -1
  88. package/dist/api/vpcgw/v1/types.gen.d.ts +49 -44
  89. package/dist/api/vpcgw/v2/api.gen.d.ts +2 -2
  90. package/dist/api/vpcgw/v2/types.gen.d.ts +33 -33
  91. package/dist/api/webhosting/v1/marshalling.gen.cjs +7 -3
  92. package/dist/api/webhosting/v1/marshalling.gen.js +7 -3
  93. package/dist/api/webhosting/v1/types.gen.d.ts +14 -6
  94. package/dist/scw/client-settings.cjs +2 -2
  95. package/dist/scw/client-settings.d.ts +2 -2
  96. package/dist/scw/client-settings.js +2 -2
  97. package/dist/scw/constants.cjs +1 -1
  98. package/dist/scw/constants.d.ts +2 -2
  99. package/dist/scw/constants.js +1 -1
  100. package/package.json +2 -2
@@ -1,11 +1,11 @@
1
- import type { Region } from '../../../bridge';
1
+ import type { Region as ScwRegion } from '../../../bridge';
2
2
  export type BrowseSecretsRequestOrderBy = 'name_asc' | 'name_desc' | 'created_at_asc' | 'created_at_desc' | 'updated_at_asc' | 'updated_at_desc';
3
3
  export type EphemeralPolicyAction = 'unknown_action' | 'delete' | 'disable';
4
4
  export type ListSecretsRequestOrderBy = 'name_asc' | 'name_desc' | 'created_at_asc' | 'created_at_desc' | 'updated_at_asc' | 'updated_at_desc';
5
5
  export type Product = 'unknown_product' | 'edge_services';
6
6
  export type SecretStatus = 'unknown_status' | 'ready' | 'locked';
7
7
  export type SecretType = 'unknown_type' | 'opaque' | 'certificate' | 'key_value' | 'basic_credentials' | 'database_credentials' | 'ssh_key';
8
- export type SecretVersionStatus = 'unknown_status' | 'enabled' | 'disabled' | 'deleted';
8
+ export type SecretVersionStatus = 'unknown_status' | 'enabled' | 'disabled' | 'deleted' | 'scheduled_for_deletion';
9
9
  export interface EphemeralPolicy {
10
10
  /**
11
11
  * Time frame, from one second and up to one year, during which the secret's
@@ -58,8 +58,9 @@ export interface SecretVersion {
58
58
  /**
59
59
  * - `unknown_status`: the version is in an invalid state. `enabled`: the
60
60
  * version is accessible. `disabled`: the version is not accessible but can
61
- * be enabled. `deleted`: the version is permanently deleted. It is not
62
- * possible to recover it.
61
+ * be enabled. `scheduled_for_deletion`: the version is scheduled for
62
+ * deletion. It will be deleted in 7 days. `deleted`: the version is
63
+ * permanently deleted. It is not possible to recover it.
63
64
  */
64
65
  status: SecretVersionStatus;
65
66
  /** Date and time of the version's creation. */
@@ -78,6 +79,8 @@ export interface SecretVersion {
78
79
  * version expires.
79
80
  */
80
81
  ephemeralProperties?: EphemeralProperties;
82
+ /** Returns the time at which deletion was requested. */
83
+ deletionRequestedAt?: Date;
81
84
  }
82
85
  export interface Secret {
83
86
  /** ID of the secret. */
@@ -117,15 +120,17 @@ export interface Secret {
117
120
  ephemeralPolicy?: EphemeralPolicy;
118
121
  /** List of Scaleway resources that can access and manage the secret. */
119
122
  usedBy: Product[];
123
+ /** Returns the time at which deletion was requested. */
124
+ deletionRequestedAt?: Date;
120
125
  /** Region of the secret. */
121
- region: Region;
126
+ region: ScwRegion;
122
127
  }
123
128
  export type AccessSecretVersionByPathRequest = {
124
129
  /**
125
130
  * Region to target. If none is passed will use default region from the
126
131
  * config.
127
132
  */
128
- region?: Region;
133
+ region?: ScwRegion;
129
134
  /**
130
135
  * The first version of the secret is numbered 1, and all subsequent revisions
131
136
  * augment by 1. Value can be either:
@@ -147,7 +152,7 @@ export type AccessSecretVersionRequest = {
147
152
  * Region to target. If none is passed will use default region from the
148
153
  * config.
149
154
  */
150
- region?: Region;
155
+ region?: ScwRegion;
151
156
  /** ID of the secret. */
152
157
  secretId: string;
153
158
  /**
@@ -183,7 +188,7 @@ export type AddSecretOwnerRequest = {
183
188
  * Region to target. If none is passed will use default region from the
184
189
  * config.
185
190
  */
186
- region?: Region;
191
+ region?: ScwRegion;
187
192
  /** ID of the secret. */
188
193
  secretId: string;
189
194
  /** See `Product` enum for description of values. */
@@ -200,7 +205,7 @@ export type BrowseSecretsRequest = {
200
205
  * Region to target. If none is passed will use default region from the
201
206
  * config.
202
207
  */
203
- region?: Region;
208
+ region?: ScwRegion;
204
209
  /** Filter by Project ID (optional). */
205
210
  projectId?: string;
206
211
  orderBy?: BrowseSecretsRequestOrderBy;
@@ -226,7 +231,7 @@ export type CreateSecretRequest = {
226
231
  * Region to target. If none is passed will use default region from the
227
232
  * config.
228
233
  */
229
- region?: Region;
234
+ region?: ScwRegion;
230
235
  /** ID of the Project containing the secret. */
231
236
  projectId?: string;
232
237
  /** Name of the secret. */
@@ -258,7 +263,7 @@ export type CreateSecretVersionRequest = {
258
263
  * Region to target. If none is passed will use default region from the
259
264
  * config.
260
265
  */
261
- region?: Region;
266
+ region?: ScwRegion;
262
267
  /** ID of the secret. */
263
268
  secretId: string;
264
269
  /** The base64-encoded secret payload of the version. */
@@ -297,7 +302,7 @@ export type DeleteSecretRequest = {
297
302
  * Region to target. If none is passed will use default region from the
298
303
  * config.
299
304
  */
300
- region?: Region;
305
+ region?: ScwRegion;
301
306
  /** ID of the secret. */
302
307
  secretId: string;
303
308
  };
@@ -306,7 +311,7 @@ export type DeleteSecretVersionRequest = {
306
311
  * Region to target. If none is passed will use default region from the
307
312
  * config.
308
313
  */
309
- region?: Region;
314
+ region?: ScwRegion;
310
315
  /** ID of the secret. */
311
316
  secretId: string;
312
317
  /**
@@ -324,7 +329,7 @@ export type DisableSecretVersionRequest = {
324
329
  * Region to target. If none is passed will use default region from the
325
330
  * config.
326
331
  */
327
- region?: Region;
332
+ region?: ScwRegion;
328
333
  /** ID of the secret. */
329
334
  secretId: string;
330
335
  /**
@@ -342,7 +347,7 @@ export type EnableSecretVersionRequest = {
342
347
  * Region to target. If none is passed will use default region from the
343
348
  * config.
344
349
  */
345
- region?: Region;
350
+ region?: ScwRegion;
346
351
  /** ID of the secret. */
347
352
  secretId: string;
348
353
  /**
@@ -360,7 +365,7 @@ export type GetSecretRequest = {
360
365
  * Region to target. If none is passed will use default region from the
361
366
  * config.
362
367
  */
363
- region?: Region;
368
+ region?: ScwRegion;
364
369
  /** ID of the secret. */
365
370
  secretId: string;
366
371
  };
@@ -369,7 +374,7 @@ export type GetSecretVersionRequest = {
369
374
  * Region to target. If none is passed will use default region from the
370
375
  * config.
371
376
  */
372
- region?: Region;
377
+ region?: ScwRegion;
373
378
  /** ID of the secret. */
374
379
  secretId: string;
375
380
  /**
@@ -387,7 +392,7 @@ export type ListSecretTypesRequest = {
387
392
  * Region to target. If none is passed will use default region from the
388
393
  * config.
389
394
  */
390
- region?: Region;
395
+ region?: ScwRegion;
391
396
  /** ID of the Project to target. */
392
397
  projectId?: string;
393
398
  page?: number;
@@ -404,7 +409,7 @@ export type ListSecretVersionsRequest = {
404
409
  * Region to target. If none is passed will use default region from the
405
410
  * config.
406
411
  */
407
- region?: Region;
412
+ region?: ScwRegion;
408
413
  /** ID of the secret. */
409
414
  secretId: string;
410
415
  page?: number;
@@ -423,7 +428,7 @@ export type ListSecretsRequest = {
423
428
  * Region to target. If none is passed will use default region from the
424
429
  * config.
425
430
  */
426
- region?: Region;
431
+ region?: ScwRegion;
427
432
  /** Filter by Organization ID (optional). */
428
433
  organizationId?: string;
429
434
  /** Filter by Project ID (optional). */
@@ -441,6 +446,11 @@ export type ListSecretsRequest = {
441
446
  ephemeral?: boolean;
442
447
  /** Filter by secret type (optional). */
443
448
  type?: SecretType;
449
+ /**
450
+ * Filter by whether the secret was scheduled for deletion / not scheduled for
451
+ * deletion (optional).
452
+ */
453
+ scheduledForDeletion?: boolean;
444
454
  };
445
455
  export interface ListSecretsResponse {
446
456
  /** Single page of secrets matching the requested criteria. */
@@ -453,7 +463,7 @@ export type ListTagsRequest = {
453
463
  * Region to target. If none is passed will use default region from the
454
464
  * config.
455
465
  */
456
- region?: Region;
466
+ region?: ScwRegion;
457
467
  /** ID of the Project to target. */
458
468
  projectId?: string;
459
469
  page?: number;
@@ -470,10 +480,27 @@ export type ProtectSecretRequest = {
470
480
  * Region to target. If none is passed will use default region from the
471
481
  * config.
472
482
  */
473
- region?: Region;
483
+ region?: ScwRegion;
474
484
  /** ID of the secret to enable secret protection for. */
475
485
  secretId: string;
476
486
  };
487
+ export type RestoreSecretRequest = {
488
+ /**
489
+ * Region to target. If none is passed will use default region from the
490
+ * config.
491
+ */
492
+ region?: ScwRegion;
493
+ secretId: string;
494
+ };
495
+ export type RestoreSecretVersionRequest = {
496
+ /**
497
+ * Region to target. If none is passed will use default region from the
498
+ * config.
499
+ */
500
+ region?: ScwRegion;
501
+ secretId: string;
502
+ revision: string;
503
+ };
477
504
  export interface SSHKey {
478
505
  /** The private SSH key. */
479
506
  sshPrivateKey: string;
@@ -483,7 +510,7 @@ export type UnprotectSecretRequest = {
483
510
  * Region to target. If none is passed will use default region from the
484
511
  * config.
485
512
  */
486
- region?: Region;
513
+ region?: ScwRegion;
487
514
  /** ID of the secret to disable secret protection for. */
488
515
  secretId: string;
489
516
  };
@@ -492,7 +519,7 @@ export type UpdateSecretRequest = {
492
519
  * Region to target. If none is passed will use default region from the
493
520
  * config.
494
521
  */
495
- region?: Region;
522
+ region?: ScwRegion;
496
523
  /** ID of the secret. */
497
524
  secretId: string;
498
525
  /** Secret's updated name (optional). */
@@ -514,7 +541,7 @@ export type UpdateSecretVersionRequest = {
514
541
  * Region to target. If none is passed will use default region from the
515
542
  * config.
516
543
  */
517
- region?: Region;
544
+ region?: ScwRegion;
518
545
  /** ID of the secret. */
519
546
  secretId: string;
520
547
  /**
@@ -1,5 +1,5 @@
1
1
  import { API as ParentAPI } from '../../../bridge';
2
- import type { Region, WaitForOptions } from '../../../bridge';
2
+ import type { Region as ScwRegion, WaitForOptions } from '../../../bridge';
3
3
  import type { CreateDatabaseRequest, Database, DatabaseBackup, DeleteDatabaseRequest, ExportDatabaseBackupRequest, GetDatabaseBackupRequest, GetDatabaseRequest, ListDatabaseBackupsRequest, ListDatabaseBackupsResponse, ListDatabasesRequest, ListDatabasesResponse, RestoreDatabaseFromBackupRequest, UpdateDatabaseRequest } from './types.gen';
4
4
  /**
5
5
  * Serverless SQL Databases API.
@@ -8,7 +8,7 @@ import type { CreateDatabaseRequest, Database, DatabaseBackup, DeleteDatabaseReq
8
8
  */
9
9
  export declare class API extends ParentAPI {
10
10
  /** Lists the available regions of the API. */
11
- static readonly LOCALITIES: Region[];
11
+ static readonly LOCALITIES: ScwRegion[];
12
12
  /**
13
13
  * Create a new Serverless SQL Database. You must provide the following
14
14
  * parameters: `organization_id`, `project_id`, `name`, `cpu_min`, `cpu_max`.
@@ -1,4 +1,4 @@
1
- import type { Region } from '../../../bridge';
1
+ import type { Region as ScwRegion } from '../../../bridge';
2
2
  export type DatabaseBackupStatus = 'unknown_status' | 'error' | 'ready' | 'locked';
3
3
  export type DatabaseStatus = 'unknown_status' | 'error' | 'creating' | 'ready' | 'deleting' | 'restoring' | 'locked';
4
4
  export type ListDatabaseBackupsRequestOrderBy = 'created_at_desc' | 'created_at_asc';
@@ -30,7 +30,7 @@ export interface DatabaseBackup {
30
30
  /** Expiration date of the download URL. */
31
31
  downloadUrlExpiresAt?: Date;
32
32
  /** Region of the database backup. */
33
- region: Region;
33
+ region: ScwRegion;
34
34
  }
35
35
  export interface Database {
36
36
  /** UUID that uniquely identifies your Serverless SQL DB Database. */
@@ -49,7 +49,7 @@ export interface Database {
49
49
  /** Project ID the database belongs to. */
50
50
  projectId: string;
51
51
  /** Region of the database. */
52
- region: Region;
52
+ region: ScwRegion;
53
53
  /** Creation date. */
54
54
  createdAt?: Date;
55
55
  /** The minimum number of CPU units for your Serverless SQL Database. */
@@ -68,7 +68,7 @@ export type CreateDatabaseRequest = {
68
68
  * Region to target. If none is passed will use default region from the
69
69
  * config.
70
70
  */
71
- region?: Region;
71
+ region?: ScwRegion;
72
72
  /** The ID of your Scaleway project. */
73
73
  projectId?: string;
74
74
  /** The name of the Serverless SQL Database to be created. */
@@ -85,7 +85,7 @@ export type DeleteDatabaseRequest = {
85
85
  * Region to target. If none is passed will use default region from the
86
86
  * config.
87
87
  */
88
- region?: Region;
88
+ region?: ScwRegion;
89
89
  /** UUID of the Serverless SQL Database. */
90
90
  databaseId: string;
91
91
  };
@@ -94,7 +94,7 @@ export type ExportDatabaseBackupRequest = {
94
94
  * Region to target. If none is passed will use default region from the
95
95
  * config.
96
96
  */
97
- region?: Region;
97
+ region?: ScwRegion;
98
98
  /** UUID of the Serverless SQL Database backup. */
99
99
  backupId: string;
100
100
  };
@@ -103,7 +103,7 @@ export type GetDatabaseBackupRequest = {
103
103
  * Region to target. If none is passed will use default region from the
104
104
  * config.
105
105
  */
106
- region?: Region;
106
+ region?: ScwRegion;
107
107
  /** UUID of the Serverless SQL Database backup. */
108
108
  backupId: string;
109
109
  };
@@ -112,7 +112,7 @@ export type GetDatabaseRequest = {
112
112
  * Region to target. If none is passed will use default region from the
113
113
  * config.
114
114
  */
115
- region?: Region;
115
+ region?: ScwRegion;
116
116
  /** UUID of the Serverless SQL DB database. */
117
117
  databaseId: string;
118
118
  };
@@ -121,7 +121,7 @@ export type ListDatabaseBackupsRequest = {
121
121
  * Region to target. If none is passed will use default region from the
122
122
  * config.
123
123
  */
124
- region?: Region;
124
+ region?: ScwRegion;
125
125
  /** Filter by the UUID of the Scaleway organization. */
126
126
  organizationId?: string;
127
127
  /** Filter by the UUID of the Scaleway project. */
@@ -146,7 +146,7 @@ export type ListDatabasesRequest = {
146
146
  * Region to target. If none is passed will use default region from the
147
147
  * config.
148
148
  */
149
- region?: Region;
149
+ region?: ScwRegion;
150
150
  /** Filter by the UUID of the Scaleway organization. */
151
151
  organizationId?: string;
152
152
  /** UUID of the Scaleway project. */
@@ -174,7 +174,7 @@ export type RestoreDatabaseFromBackupRequest = {
174
174
  * Region to target. If none is passed will use default region from the
175
175
  * config.
176
176
  */
177
- region?: Region;
177
+ region?: ScwRegion;
178
178
  /** UUID of the Serverless SQL Database. */
179
179
  databaseId: string;
180
180
  /** UUID of the Serverless SQL Database backup to restore. */
@@ -185,7 +185,7 @@ export type UpdateDatabaseRequest = {
185
185
  * Region to target. If none is passed will use default region from the
186
186
  * config.
187
187
  */
188
- region?: Region;
188
+ region?: ScwRegion;
189
189
  /** UUID of the Serverless SQL Database. */
190
190
  databaseId: string;
191
191
  /** The minimum number of CPU units for your Serverless SQL Database. */
@@ -1,5 +1,5 @@
1
1
  import { API as ParentAPI } from '../../../bridge';
2
- import type { Region, WaitForOptions } from '../../../bridge';
2
+ import type { Region as ScwRegion, WaitForOptions } from '../../../bridge';
3
3
  import type { BulkCreateBlocklistsRequest, BulkCreateBlocklistsResponse, CancelEmailRequest, CheckDomainRequest, CreateDomainRequest, CreateEmailRequest, CreateEmailResponse, CreateWebhookRequest, DeleteBlocklistRequest, DeleteWebhookRequest, Domain, DomainLastStatus, Email, GetDomainLastStatusRequest, GetDomainRequest, GetEmailRequest, GetProjectSettingsRequest, GetStatisticsRequest, GetWebhookRequest, ListBlocklistsRequest, ListBlocklistsResponse, ListDomainsRequest, ListDomainsResponse, ListEmailsRequest, ListEmailsResponse, ListWebhookEventsRequest, ListWebhookEventsResponse, ListWebhooksRequest, ListWebhooksResponse, ProjectSettings, RevokeDomainRequest, Statistics, UpdateDomainRequest, UpdateProjectSettingsRequest, UpdateWebhookRequest, Webhook } from './types.gen';
4
4
  /**
5
5
  * Transactional Email API.
@@ -8,7 +8,7 @@ import type { BulkCreateBlocklistsRequest, BulkCreateBlocklistsResponse, CancelE
8
8
  */
9
9
  export declare class API extends ParentAPI {
10
10
  /** Lists the available regions of the API. */
11
- static readonly LOCALITIES: Region[];
11
+ static readonly LOCALITIES: ScwRegion[];
12
12
  /**
13
13
  * Send an email. You must specify the `region`, the sender and the
14
14
  * recipient's information and the `project_id` to send an email from a
@@ -1,4 +1,4 @@
1
- import type { Region } from '../../../bridge';
1
+ import type { Region as ScwRegion } from '../../../bridge';
2
2
  export type BlocklistType = 'unknown_type' | 'mailbox_full' | 'mailbox_not_found';
3
3
  export type DomainLastStatusAutoconfigStateReason = 'unknown_reason' | 'permission_denied' | 'domain_not_found';
4
4
  export type DomainLastStatusRecordStatus = 'unknown_record_status' | 'valid' | 'invalid' | 'not_found';
@@ -212,7 +212,7 @@ export interface Domain {
212
212
  * Region to target. If none is passed will use default region from the
213
213
  * config.
214
214
  */
215
- region: Region;
215
+ region: ScwRegion;
216
216
  }
217
217
  export interface WebhookEvent {
218
218
  /** ID of the Webhook Event. */
@@ -289,7 +289,7 @@ export type BulkCreateBlocklistsRequest = {
289
289
  * Region to target. If none is passed will use default region from the
290
290
  * config.
291
291
  */
292
- region?: Region;
292
+ region?: ScwRegion;
293
293
  /** Domain ID linked to the blocklist. */
294
294
  domainId: string;
295
295
  /** Email blocked by the blocklist. */
@@ -308,7 +308,7 @@ export type CancelEmailRequest = {
308
308
  * Region to target. If none is passed will use default region from the
309
309
  * config.
310
310
  */
311
- region?: Region;
311
+ region?: ScwRegion;
312
312
  /** ID of the email to cancel. */
313
313
  emailId: string;
314
314
  };
@@ -317,7 +317,7 @@ export type CheckDomainRequest = {
317
317
  * Region to target. If none is passed will use default region from the
318
318
  * config.
319
319
  */
320
- region?: Region;
320
+ region?: ScwRegion;
321
321
  /** ID of the domain to check. */
322
322
  domainId: string;
323
323
  };
@@ -326,7 +326,7 @@ export type CreateDomainRequest = {
326
326
  * Region to target. If none is passed will use default region from the
327
327
  * config.
328
328
  */
329
- region?: Region;
329
+ region?: ScwRegion;
330
330
  /** ID of the project to which the domain belongs. */
331
331
  projectId?: string;
332
332
  /** Fully qualified domain dame. */
@@ -341,7 +341,7 @@ export type CreateEmailRequest = {
341
341
  * Region to target. If none is passed will use default region from the
342
342
  * config.
343
343
  */
344
- region?: Region;
344
+ region?: ScwRegion;
345
345
  /** Sender information. Must be from a checked domain declared in the Project. */
346
346
  from: CreateEmailRequestAddress;
347
347
  /** An array of the primary recipient's information. */
@@ -374,7 +374,7 @@ export type CreateWebhookRequest = {
374
374
  * Region to target. If none is passed will use default region from the
375
375
  * config.
376
376
  */
377
- region?: Region;
377
+ region?: ScwRegion;
378
378
  /** ID of the Domain to watch for triggering events. */
379
379
  domainId: string;
380
380
  /** ID of the project to which the Webhook belongs. */
@@ -391,7 +391,7 @@ export type DeleteBlocklistRequest = {
391
391
  * Region to target. If none is passed will use default region from the
392
392
  * config.
393
393
  */
394
- region?: Region;
394
+ region?: ScwRegion;
395
395
  /** ID of the blocklist to delete. */
396
396
  blocklistId: string;
397
397
  };
@@ -400,7 +400,7 @@ export type DeleteWebhookRequest = {
400
400
  * Region to target. If none is passed will use default region from the
401
401
  * config.
402
402
  */
403
- region?: Region;
403
+ region?: ScwRegion;
404
404
  /** ID of the Webhook to delete. */
405
405
  webhookId: string;
406
406
  };
@@ -423,7 +423,7 @@ export type GetDomainLastStatusRequest = {
423
423
  * Region to target. If none is passed will use default region from the
424
424
  * config.
425
425
  */
426
- region?: Region;
426
+ region?: ScwRegion;
427
427
  /** ID of the domain to delete. */
428
428
  domainId: string;
429
429
  };
@@ -432,7 +432,7 @@ export type GetDomainRequest = {
432
432
  * Region to target. If none is passed will use default region from the
433
433
  * config.
434
434
  */
435
- region?: Region;
435
+ region?: ScwRegion;
436
436
  /** ID of the domain. */
437
437
  domainId: string;
438
438
  };
@@ -441,7 +441,7 @@ export type GetEmailRequest = {
441
441
  * Region to target. If none is passed will use default region from the
442
442
  * config.
443
443
  */
444
- region?: Region;
444
+ region?: ScwRegion;
445
445
  /** ID of the email to retrieve. */
446
446
  emailId: string;
447
447
  };
@@ -450,7 +450,7 @@ export type GetProjectSettingsRequest = {
450
450
  * Region to target. If none is passed will use default region from the
451
451
  * config.
452
452
  */
453
- region?: Region;
453
+ region?: ScwRegion;
454
454
  /** ID of the project. */
455
455
  projectId?: string;
456
456
  };
@@ -459,7 +459,7 @@ export type GetStatisticsRequest = {
459
459
  * Region to target. If none is passed will use default region from the
460
460
  * config.
461
461
  */
462
- region?: Region;
462
+ region?: ScwRegion;
463
463
  /** (Optional) Number of emails for this Project. */
464
464
  projectId?: string;
465
465
  /**
@@ -479,7 +479,7 @@ export type GetWebhookRequest = {
479
479
  * Region to target. If none is passed will use default region from the
480
480
  * config.
481
481
  */
482
- region?: Region;
482
+ region?: ScwRegion;
483
483
  /** ID of the Webhook to check. */
484
484
  webhookId: string;
485
485
  };
@@ -488,7 +488,7 @@ export type ListBlocklistsRequest = {
488
488
  * Region to target. If none is passed will use default region from the
489
489
  * config.
490
490
  */
491
- region?: Region;
491
+ region?: ScwRegion;
492
492
  /** (Optional) List blocklist corresponding to specific criteria. */
493
493
  orderBy?: ListBlocklistsRequestOrderBy;
494
494
  /** (Optional) Requested page number. Value must be greater or equal to 1. */
@@ -518,7 +518,7 @@ export type ListDomainsRequest = {
518
518
  * Region to target. If none is passed will use default region from the
519
519
  * config.
520
520
  */
521
- region?: Region;
521
+ region?: ScwRegion;
522
522
  /** Requested page number. Value must be greater or equal to 1. */
523
523
  page?: number;
524
524
  /** Requested page size. Value must be between 1 and 1000. */
@@ -543,7 +543,7 @@ export type ListEmailsRequest = {
543
543
  * Region to target. If none is passed will use default region from the
544
544
  * config.
545
545
  */
546
- region?: Region;
546
+ region?: ScwRegion;
547
547
  page?: number;
548
548
  pageSize?: number;
549
549
  /** (Optional) ID of the Project in which to list the emails. */
@@ -584,7 +584,7 @@ export type ListWebhookEventsRequest = {
584
584
  * Region to target. If none is passed will use default region from the
585
585
  * config.
586
586
  */
587
- region?: Region;
587
+ region?: ScwRegion;
588
588
  /** ID of the Webhook linked to the events. */
589
589
  webhookId: string;
590
590
  /** (Optional) List Webhook events corresponding to specific criteria. */
@@ -617,7 +617,7 @@ export type ListWebhooksRequest = {
617
617
  * Region to target. If none is passed will use default region from the
618
618
  * config.
619
619
  */
620
- region?: Region;
620
+ region?: ScwRegion;
621
621
  /** (Optional) List Webhooks corresponding to specific criteria. */
622
622
  orderBy?: ListWebhooksRequestOrderBy;
623
623
  /** (Optional) Requested page number. Value must be greater or equal to 1. */
@@ -646,7 +646,7 @@ export type RevokeDomainRequest = {
646
646
  * Region to target. If none is passed will use default region from the
647
647
  * config.
648
648
  */
649
- region?: Region;
649
+ region?: ScwRegion;
650
650
  /** ID of the domain to delete. */
651
651
  domainId: string;
652
652
  };
@@ -684,7 +684,7 @@ export type UpdateDomainRequest = {
684
684
  * Region to target. If none is passed will use default region from the
685
685
  * config.
686
686
  */
687
- region?: Region;
687
+ region?: ScwRegion;
688
688
  /** ID of the domain to update. */
689
689
  domainId: string;
690
690
  /**
@@ -698,7 +698,7 @@ export type UpdateProjectSettingsRequest = {
698
698
  * Region to target. If none is passed will use default region from the
699
699
  * config.
700
700
  */
701
- region?: Region;
701
+ region?: ScwRegion;
702
702
  /** ID of the project. */
703
703
  projectId?: string;
704
704
  /** Periodic report update details - all fields are optional. */
@@ -709,7 +709,7 @@ export type UpdateWebhookRequest = {
709
709
  * Region to target. If none is passed will use default region from the
710
710
  * config.
711
711
  */
712
- region?: Region;
712
+ region?: ScwRegion;
713
713
  /** ID of the Webhook to update. */
714
714
  webhookId: string;
715
715
  /** Name of the Webhook to update. */
@@ -740,5 +740,11 @@ class API extends api.API {
740
740
  },
741
741
  marshalling_gen.unmarshalGateway
742
742
  );
743
+ migrateToV2 = (request) => this.client.fetch({
744
+ body: "{}",
745
+ headers: jsonContentHeaders,
746
+ method: "POST",
747
+ path: `/vpc-gw/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/gateways/${marshalling.validatePathParam("gatewayId", request.gatewayId)}/migrate-to-v2`
748
+ });
743
749
  }
744
750
  exports.API = API;
@@ -1,6 +1,6 @@
1
1
  import { API as ParentAPI } from '../../../bridge';
2
- import type { WaitForOptions, Zone } from '../../../bridge';
3
- import type { CreateDHCPEntryRequest, CreateDHCPRequest, CreateGatewayNetworkRequest, CreateGatewayRequest, CreateIPRequest, CreatePATRuleRequest, DHCP, DHCPEntry, DeleteDHCPEntryRequest, DeleteDHCPRequest, DeleteGatewayNetworkRequest, DeleteGatewayRequest, DeleteIPRequest, DeletePATRuleRequest, EnableIPMobilityRequest, Gateway, GatewayNetwork, GetDHCPEntryRequest, GetDHCPRequest, GetGatewayNetworkRequest, GetGatewayRequest, GetIPRequest, GetPATRuleRequest, IP, ListDHCPEntriesRequest, ListDHCPEntriesResponse, ListDHCPsRequest, ListDHCPsResponse, ListGatewayNetworksRequest, ListGatewayNetworksResponse, ListGatewayTypesRequest, ListGatewayTypesResponse, ListGatewaysRequest, ListGatewaysResponse, ListIPsRequest, ListIPsResponse, ListPATRulesRequest, ListPATRulesResponse, PATRule, RefreshSSHKeysRequest, SetDHCPEntriesRequest, SetDHCPEntriesResponse, SetPATRulesRequest, SetPATRulesResponse, UpdateDHCPEntryRequest, UpdateDHCPRequest, UpdateGatewayNetworkRequest, UpdateGatewayRequest, UpdateIPRequest, UpdatePATRuleRequest, UpgradeGatewayRequest } from './types.gen';
2
+ import type { Zone as ScwZone, WaitForOptions } from '../../../bridge';
3
+ import type { CreateDHCPEntryRequest, CreateDHCPRequest, CreateGatewayNetworkRequest, CreateGatewayRequest, CreateIPRequest, CreatePATRuleRequest, DHCP, DHCPEntry, DeleteDHCPEntryRequest, DeleteDHCPRequest, DeleteGatewayNetworkRequest, DeleteGatewayRequest, DeleteIPRequest, DeletePATRuleRequest, EnableIPMobilityRequest, Gateway, GatewayNetwork, GetDHCPEntryRequest, GetDHCPRequest, GetGatewayNetworkRequest, GetGatewayRequest, GetIPRequest, GetPATRuleRequest, IP, ListDHCPEntriesRequest, ListDHCPEntriesResponse, ListDHCPsRequest, ListDHCPsResponse, ListGatewayNetworksRequest, ListGatewayNetworksResponse, ListGatewayTypesRequest, ListGatewayTypesResponse, ListGatewaysRequest, ListGatewaysResponse, ListIPsRequest, ListIPsResponse, ListPATRulesRequest, ListPATRulesResponse, MigrateToV2Request, PATRule, RefreshSSHKeysRequest, SetDHCPEntriesRequest, SetDHCPEntriesResponse, SetPATRulesRequest, SetPATRulesResponse, UpdateDHCPEntryRequest, UpdateDHCPRequest, UpdateGatewayNetworkRequest, UpdateGatewayRequest, UpdateIPRequest, UpdatePATRuleRequest, UpgradeGatewayRequest } from './types.gen';
4
4
  /**
5
5
  * Public Gateways API.
6
6
  *
@@ -8,7 +8,7 @@ import type { CreateDHCPEntryRequest, CreateDHCPRequest, CreateGatewayNetworkReq
8
8
  */
9
9
  export declare class API extends ParentAPI {
10
10
  /** Lists the available zones of the API. */
11
- static readonly LOCALITIES: Zone[];
11
+ static readonly LOCALITIES: ScwZone[];
12
12
  protected pageOfListGateways: (request?: Readonly<ListGatewaysRequest>) => Promise<ListGatewaysResponse>;
13
13
  /**
14
14
  * List Public Gateways. List Public Gateways in a given Scaleway Organization
@@ -391,4 +391,5 @@ export declare class API extends ParentAPI {
391
391
  * @returns A Promise of Gateway
392
392
  */
393
393
  refreshSSHKeys: (request: Readonly<RefreshSSHKeysRequest>) => Promise<Gateway>;
394
+ migrateToV2: (request: Readonly<MigrateToV2Request>) => Promise<void>;
394
395
  }
@@ -738,6 +738,12 @@ class API extends API$1 {
738
738
  },
739
739
  unmarshalGateway
740
740
  );
741
+ migrateToV2 = (request) => this.client.fetch({
742
+ body: "{}",
743
+ headers: jsonContentHeaders,
744
+ method: "POST",
745
+ path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/gateways/${validatePathParam("gatewayId", request.gatewayId)}/migrate-to-v2`
746
+ });
741
747
  }
742
748
  export {
743
749
  API
@@ -1,3 +1,3 @@
1
1
  export { API } from './api.gen.js';
2
2
  export * from './content.gen.js';
3
- export type { CreateDHCPEntryRequest, CreateDHCPRequest, CreateGatewayNetworkRequest, CreateGatewayNetworkRequestIpamConfig, CreateGatewayRequest, CreateIPRequest, CreatePATRuleRequest, DHCP, DHCPEntry, DHCPEntryType, DeleteDHCPEntryRequest, DeleteDHCPRequest, DeleteGatewayNetworkRequest, DeleteGatewayRequest, DeleteIPRequest, DeletePATRuleRequest, EnableIPMobilityRequest, Gateway, GatewayNetwork, GatewayNetworkStatus, GatewayStatus, GatewayType, GetDHCPEntryRequest, GetDHCPRequest, GetGatewayNetworkRequest, GetGatewayRequest, GetIPRequest, GetPATRuleRequest, IP, IpamConfig, ListDHCPEntriesRequest, ListDHCPEntriesRequestOrderBy, ListDHCPEntriesResponse, ListDHCPsRequest, ListDHCPsRequestOrderBy, ListDHCPsResponse, ListGatewayNetworksRequest, ListGatewayNetworksRequestOrderBy, ListGatewayNetworksResponse, ListGatewayTypesRequest, ListGatewayTypesResponse, ListGatewaysRequest, ListGatewaysRequestOrderBy, ListGatewaysResponse, ListIPsRequest, ListIPsRequestOrderBy, ListIPsResponse, ListPATRulesRequest, ListPATRulesRequestOrderBy, ListPATRulesResponse, PATRule, PATRuleProtocol, RefreshSSHKeysRequest, SetDHCPEntriesRequest, SetDHCPEntriesRequestEntry, SetDHCPEntriesResponse, SetPATRulesRequest, SetPATRulesRequestRule, SetPATRulesResponse, UpdateDHCPEntryRequest, UpdateDHCPRequest, UpdateGatewayNetworkRequest, UpdateGatewayNetworkRequestIpamConfig, UpdateGatewayRequest, UpdateIPRequest, UpdatePATRuleRequest, UpgradeGatewayRequest, } from './types.gen';
3
+ export type { CreateDHCPEntryRequest, CreateDHCPRequest, CreateGatewayNetworkRequest, CreateGatewayNetworkRequestIpamConfig, CreateGatewayRequest, CreateIPRequest, CreatePATRuleRequest, DHCP, DHCPEntry, DHCPEntryType, DeleteDHCPEntryRequest, DeleteDHCPRequest, DeleteGatewayNetworkRequest, DeleteGatewayRequest, DeleteIPRequest, DeletePATRuleRequest, EnableIPMobilityRequest, Gateway, GatewayNetwork, GatewayNetworkStatus, GatewayStatus, GatewayType, GetDHCPEntryRequest, GetDHCPRequest, GetGatewayNetworkRequest, GetGatewayRequest, GetIPRequest, GetPATRuleRequest, IP, IpamConfig, ListDHCPEntriesRequest, ListDHCPEntriesRequestOrderBy, ListDHCPEntriesResponse, ListDHCPsRequest, ListDHCPsRequestOrderBy, ListDHCPsResponse, ListGatewayNetworksRequest, ListGatewayNetworksRequestOrderBy, ListGatewayNetworksResponse, ListGatewayTypesRequest, ListGatewayTypesResponse, ListGatewaysRequest, ListGatewaysRequestOrderBy, ListGatewaysResponse, ListIPsRequest, ListIPsRequestOrderBy, ListIPsResponse, ListPATRulesRequest, ListPATRulesRequestOrderBy, ListPATRulesResponse, MigrateToV2Request, PATRule, PATRuleProtocol, RefreshSSHKeysRequest, SetDHCPEntriesRequest, SetDHCPEntriesRequestEntry, SetDHCPEntriesResponse, SetPATRulesRequest, SetPATRulesRequestRule, SetPATRulesResponse, UpdateDHCPEntryRequest, UpdateDHCPRequest, UpdateGatewayNetworkRequest, UpdateGatewayNetworkRequestIpamConfig, UpdateGatewayRequest, UpdateIPRequest, UpdatePATRuleRequest, UpgradeGatewayRequest, } from './types.gen';