@scaleway/sdk 2.63.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.
Files changed (70) hide show
  1. package/dist/api/applesilicon/v1alpha1/api.gen.d.ts +3 -3
  2. package/dist/api/applesilicon/v1alpha1/types.gen.d.ts +20 -20
  3. package/dist/api/cockpit/v1/api.gen.cjs +19 -1
  4. package/dist/api/cockpit/v1/api.gen.d.ts +4 -3
  5. package/dist/api/cockpit/v1/api.gen.js +20 -2
  6. package/dist/api/cockpit/v1/index.gen.d.ts +1 -1
  7. package/dist/api/cockpit/v1/marshalling.gen.cjs +13 -0
  8. package/dist/api/cockpit/v1/marshalling.gen.d.ts +2 -1
  9. package/dist/api/cockpit/v1/marshalling.gen.js +13 -0
  10. package/dist/api/cockpit/v1/types.gen.d.ts +50 -31
  11. package/dist/api/edge_services/v1alpha1/types.gen.d.ts +3 -3
  12. package/dist/api/iam/v1alpha1/index.gen.d.ts +1 -1
  13. package/dist/api/iam/v1alpha1/marshalling.gen.cjs +16 -0
  14. package/dist/api/iam/v1alpha1/marshalling.gen.js +16 -0
  15. package/dist/api/iam/v1alpha1/types.gen.d.ts +48 -4
  16. package/dist/api/iam/v1alpha1/validation-rules.gen.cjs +7 -3
  17. package/dist/api/iam/v1alpha1/validation-rules.gen.d.ts +6 -3
  18. package/dist/api/iam/v1alpha1/validation-rules.gen.js +7 -3
  19. package/dist/api/inference/v1beta1/api.gen.d.ts +2 -2
  20. package/dist/api/inference/v1beta1/types.gen.d.ts +21 -21
  21. package/dist/api/instance/v1/api.gen.d.ts +2 -2
  22. package/dist/api/instance/v1/types.gen.d.ts +87 -87
  23. package/dist/api/instance/v1/types.private.gen.d.ts +5 -5
  24. package/dist/api/interlink/v1beta1/api.gen.cjs +5 -1
  25. package/dist/api/interlink/v1beta1/api.gen.d.ts +2 -2
  26. package/dist/api/interlink/v1beta1/api.gen.js +5 -1
  27. package/dist/api/interlink/v1beta1/marshalling.gen.cjs +1 -0
  28. package/dist/api/interlink/v1beta1/marshalling.gen.js +1 -0
  29. package/dist/api/interlink/v1beta1/types.gen.d.ts +29 -24
  30. package/dist/api/ipam/v1/api.gen.cjs +5 -1
  31. package/dist/api/ipam/v1/api.gen.d.ts +2 -2
  32. package/dist/api/ipam/v1/api.gen.js +5 -1
  33. package/dist/api/ipam/v1/types.gen.d.ts +13 -13
  34. package/dist/api/key_manager/v1alpha1/api.gen.cjs +41 -37
  35. package/dist/api/key_manager/v1alpha1/api.gen.d.ts +38 -38
  36. package/dist/api/key_manager/v1alpha1/api.gen.js +41 -37
  37. package/dist/api/key_manager/v1alpha1/types.gen.d.ts +31 -30
  38. package/dist/api/lb/v1/api.gen.cjs +5 -1
  39. package/dist/api/lb/v1/api.gen.d.ts +3 -3
  40. package/dist/api/lb/v1/api.gen.js +5 -1
  41. package/dist/api/lb/v1/types.gen.d.ts +116 -116
  42. package/dist/api/vpc/v2/api.gen.cjs +5 -21
  43. package/dist/api/vpc/v2/api.gen.d.ts +3 -13
  44. package/dist/api/vpc/v2/api.gen.js +6 -22
  45. package/dist/api/vpc/v2/index.gen.d.ts +1 -1
  46. package/dist/api/vpc/v2/marshalling.gen.cjs +0 -16
  47. package/dist/api/vpc/v2/marshalling.gen.d.ts +1 -2
  48. package/dist/api/vpc/v2/marshalling.gen.js +1 -17
  49. package/dist/api/vpc/v2/types.gen.d.ts +24 -49
  50. package/dist/api/webhosting/v1/api.gen.cjs +98 -10
  51. package/dist/api/webhosting/v1/api.gen.d.ts +40 -12
  52. package/dist/api/webhosting/v1/api.gen.js +100 -12
  53. package/dist/api/webhosting/v1/content.gen.cjs +4 -0
  54. package/dist/api/webhosting/v1/content.gen.d.ts +5 -1
  55. package/dist/api/webhosting/v1/content.gen.js +4 -0
  56. package/dist/api/webhosting/v1/index.gen.cjs +2 -0
  57. package/dist/api/webhosting/v1/index.gen.d.ts +1 -1
  58. package/dist/api/webhosting/v1/index.gen.js +3 -1
  59. package/dist/api/webhosting/v1/marshalling.gen.cjs +45 -0
  60. package/dist/api/webhosting/v1/marshalling.gen.d.ts +3 -1
  61. package/dist/api/webhosting/v1/marshalling.gen.js +45 -0
  62. package/dist/api/webhosting/v1/types.gen.d.ts +102 -36
  63. package/dist/api/webhosting/v1alpha1/api.gen.cjs +6 -2
  64. package/dist/api/webhosting/v1alpha1/api.gen.d.ts +3 -3
  65. package/dist/api/webhosting/v1alpha1/api.gen.js +6 -2
  66. package/dist/api/webhosting/v1alpha1/types.gen.d.ts +19 -19
  67. package/dist/scw/constants.cjs +1 -1
  68. package/dist/scw/constants.d.ts +2 -2
  69. package/dist/scw/constants.js +1 -1
  70. package/package.json +2 -2
@@ -1,8 +1,14 @@
1
- import type { Money, Region } from '../../../bridge';
1
+ import type { Money, Region as ScwRegion } from '../../../bridge';
2
2
  import type { LanguageCode as StdLanguageCode } from '../../std/types.gen';
3
3
  export type DnsRecordStatus = 'unknown_status' | 'valid' | 'invalid';
4
4
  export type DnsRecordType = 'unknown_type' | 'a' | 'cname' | 'mx' | 'txt' | 'ns' | 'aaaa';
5
5
  export type DnsRecordsStatus = 'unknown_status' | 'valid' | 'invalid';
6
+ export type DomainAction = 'unknown_action' | 'transfer' | 'manage_external' | 'renew';
7
+ export type DomainAvailabilityAction = 'unknown_action' | 'register' | 'transfer' | 'manage_external';
8
+ export type DomainAvailabilityStatus = 'unknown_status' | 'available' | 'not_available' | 'owned' | 'validating' | 'error';
9
+ export type DomainDnsAction = 'unknown_dns_action' | 'auto_config_all_records' | 'auto_config_web_records' | 'auto_config_mail_records' | 'auto_config_nameservers';
10
+ export type DomainStatus = 'unknown_status' | 'valid' | 'invalid' | 'validating' | 'error';
11
+ export type DomainZoneOwner = 'unknown_zone_owner' | 'external' | 'scaleway' | 'online' | 'webhosting';
6
12
  export type HostingStatus = 'unknown_status' | 'delivering' | 'ready' | 'deleting' | 'error' | 'locked' | 'migrating';
7
13
  export type HostingSummaryStatus = 'unknown_status' | 'delivering' | 'ready' | 'deleting' | 'error' | 'locked' | 'migrating';
8
14
  export type ListDatabaseUsersRequestOrderBy = 'username_asc' | 'username_desc';
@@ -195,7 +201,7 @@ export interface HostingSummary {
195
201
  /** Name of the active offer for the Web Hosting plan. */
196
202
  offerName: string;
197
203
  /** Region where the Web Hosting plan is hosted. */
198
- region: Region;
204
+ region: ScwRegion;
199
205
  }
200
206
  export interface MailAccount {
201
207
  /** Domain part of the mail account address. */
@@ -211,6 +217,20 @@ export interface Website {
211
217
  /** The SSL status of the website. */
212
218
  sslStatus: boolean;
213
219
  }
220
+ export interface DomainAvailability {
221
+ /** Fully qualified domain name (FQDN). */
222
+ name: string;
223
+ /** DNS zone associated with the domain. */
224
+ zoneName: string;
225
+ /** Availability status of the domain. */
226
+ status: DomainAvailabilityStatus;
227
+ /** A list of actions that can be performed on the domain. */
228
+ availableActions: DomainAvailabilityAction[];
229
+ /** Whether a hosting can be created for this domain. */
230
+ canCreateHosting: boolean;
231
+ /** Price for registering the domain. */
232
+ price?: Money;
233
+ }
214
234
  export interface CheckUserOwnsDomainResponse {
215
235
  /** Indicates whether the specified project owns the domain. */
216
236
  ownsDomain: boolean;
@@ -220,7 +240,7 @@ export type ControlPanelApiListControlPanelsRequest = {
220
240
  * Region to target. If none is passed will use default region from the
221
241
  * config.
222
242
  */
223
- region?: Region;
243
+ region?: ScwRegion;
224
244
  /** Page number (must be a positive integer). */
225
245
  page?: number;
226
246
  /**
@@ -234,7 +254,7 @@ export type DatabaseApiAssignDatabaseUserRequest = {
234
254
  * Region to target. If none is passed will use default region from the
235
255
  * config.
236
256
  */
237
- region?: Region;
257
+ region?: ScwRegion;
238
258
  /** UUID of the hosting plan. */
239
259
  hostingId: string;
240
260
  /** Name of the database to be assigned. */
@@ -247,7 +267,7 @@ export type DatabaseApiChangeDatabaseUserPasswordRequest = {
247
267
  * Region to target. If none is passed will use default region from the
248
268
  * config.
249
269
  */
250
- region?: Region;
270
+ region?: ScwRegion;
251
271
  /** UUID of the hosting plan. */
252
272
  hostingId: string;
253
273
  /** Name of the user to update. */
@@ -260,7 +280,7 @@ export type DatabaseApiCreateDatabaseRequest = {
260
280
  * Region to target. If none is passed will use default region from the
261
281
  * config.
262
282
  */
263
- region?: Region;
283
+ region?: ScwRegion;
264
284
  /** UUID of the hosting plan where the database will be created. */
265
285
  hostingId: string;
266
286
  /** Name of the database to be created. */
@@ -283,7 +303,7 @@ export type DatabaseApiCreateDatabaseUserRequest = {
283
303
  * Region to target. If none is passed will use default region from the
284
304
  * config.
285
305
  */
286
- region?: Region;
306
+ region?: ScwRegion;
287
307
  /** UUID of the hosting plan. */
288
308
  hostingId: string;
289
309
  /** Name of the user to create. */
@@ -296,7 +316,7 @@ export type DatabaseApiDeleteDatabaseRequest = {
296
316
  * Region to target. If none is passed will use default region from the
297
317
  * config.
298
318
  */
299
- region?: Region;
319
+ region?: ScwRegion;
300
320
  /** UUID of the hosting plan. */
301
321
  hostingId: string;
302
322
  /** Name of the database to delete. */
@@ -307,7 +327,7 @@ export type DatabaseApiDeleteDatabaseUserRequest = {
307
327
  * Region to target. If none is passed will use default region from the
308
328
  * config.
309
329
  */
310
- region?: Region;
330
+ region?: ScwRegion;
311
331
  /** UUID of the hosting plan. */
312
332
  hostingId: string;
313
333
  /** Name of the database user to delete. */
@@ -318,7 +338,7 @@ export type DatabaseApiGetDatabaseRequest = {
318
338
  * Region to target. If none is passed will use default region from the
319
339
  * config.
320
340
  */
321
- region?: Region;
341
+ region?: ScwRegion;
322
342
  /** UUID of the hosting plan. */
323
343
  hostingId: string;
324
344
  /** Name of the database. */
@@ -329,7 +349,7 @@ export type DatabaseApiGetDatabaseUserRequest = {
329
349
  * Region to target. If none is passed will use default region from the
330
350
  * config.
331
351
  */
332
- region?: Region;
352
+ region?: ScwRegion;
333
353
  /** UUID of the hosting plan. */
334
354
  hostingId: string;
335
355
  /** Name of the database user to retrieve details. */
@@ -340,7 +360,7 @@ export type DatabaseApiListDatabaseUsersRequest = {
340
360
  * Region to target. If none is passed will use default region from the
341
361
  * config.
342
362
  */
343
- region?: Region;
363
+ region?: ScwRegion;
344
364
  /** UUID of the hosting plan. */
345
365
  hostingId: string;
346
366
  /** Page number (must be a positive integer). */
@@ -358,7 +378,7 @@ export type DatabaseApiListDatabasesRequest = {
358
378
  * Region to target. If none is passed will use default region from the
359
379
  * config.
360
380
  */
361
- region?: Region;
381
+ region?: ScwRegion;
362
382
  /** UUID of the hosting plan. */
363
383
  hostingId: string;
364
384
  /** Page number (must be a positive integer). */
@@ -376,7 +396,7 @@ export type DatabaseApiUnassignDatabaseUserRequest = {
376
396
  * Region to target. If none is passed will use default region from the
377
397
  * config.
378
398
  */
379
- region?: Region;
399
+ region?: ScwRegion;
380
400
  /** UUID of the hosting plan. */
381
401
  hostingId: string;
382
402
  /** Name of the database to be unassigned. */
@@ -389,7 +409,7 @@ export type DnsApiCheckUserOwnsDomainRequest = {
389
409
  * Region to target. If none is passed will use default region from the
390
410
  * config.
391
411
  */
392
- region?: Region;
412
+ region?: ScwRegion;
393
413
  /** Domain for which ownership is to be verified. */
394
414
  domain: string;
395
415
  /** ID of the project currently in use. */
@@ -400,16 +420,44 @@ export type DnsApiGetDomainDnsRecordsRequest = {
400
420
  * Region to target. If none is passed will use default region from the
401
421
  * config.
402
422
  */
403
- region?: Region;
423
+ region?: ScwRegion;
404
424
  /** Domain associated with the DNS records. */
405
425
  domain: string;
406
426
  };
427
+ export type DnsApiGetDomainRequest = {
428
+ /**
429
+ * Region to target. If none is passed will use default region from the
430
+ * config.
431
+ */
432
+ region?: ScwRegion;
433
+ /** Domain name to get. */
434
+ domainName: string;
435
+ /**
436
+ * ID of the Scaleway Project in which to get the domain to create the Web
437
+ * Hosting plan.
438
+ */
439
+ projectId?: string;
440
+ };
441
+ export type DnsApiSearchDomainsRequest = {
442
+ /**
443
+ * Region to target. If none is passed will use default region from the
444
+ * config.
445
+ */
446
+ region?: ScwRegion;
447
+ /** Domain name to search. */
448
+ domainName: string;
449
+ /**
450
+ * ID of the Scaleway Project in which to search the domain to create the Web
451
+ * Hosting plan.
452
+ */
453
+ projectId?: string;
454
+ };
407
455
  export type DnsApiSyncDomainDnsRecordsRequest = {
408
456
  /**
409
457
  * Region to target. If none is passed will use default region from the
410
458
  * config.
411
459
  */
412
- region?: Region;
460
+ region?: ScwRegion;
413
461
  /** Domain for which the DNS records will be synchronized. */
414
462
  domain: string;
415
463
  /** Whether or not to synchronize the web records. */
@@ -418,6 +466,8 @@ export type DnsApiSyncDomainDnsRecordsRequest = {
418
466
  updateMailRecords: boolean;
419
467
  /** Whether or not to synchronize all types of records. This one has priority. */
420
468
  updateAllRecords: boolean;
469
+ /** Whether or not to synchronize domain nameservers. */
470
+ updateNameservers: boolean;
421
471
  /** Custom records to synchronize. */
422
472
  customRecords?: SyncDomainDnsRecordsRequestRecord[];
423
473
  };
@@ -429,12 +479,24 @@ export interface DnsRecords {
429
479
  /** Status of the records. */
430
480
  status: DnsRecordsStatus;
431
481
  }
482
+ export interface Domain {
483
+ /** Name of the domain. */
484
+ name: string;
485
+ /** Current status of the domain. */
486
+ status: DomainStatus;
487
+ /** Zone owner of the domain. */
488
+ owner: DomainZoneOwner;
489
+ /** A list of actions that can be performed on the domain. */
490
+ availableActions: DomainAction[];
491
+ /** A list of DNS-related actions that can be auto configured for the domain. */
492
+ availableDnsActions: DomainDnsAction[];
493
+ }
432
494
  export type FtpAccountApiChangeFtpAccountPasswordRequest = {
433
495
  /**
434
496
  * Region to target. If none is passed will use default region from the
435
497
  * config.
436
498
  */
437
- region?: Region;
499
+ region?: ScwRegion;
438
500
  /** UUID of the hosting plan. */
439
501
  hostingId: string;
440
502
  /** Username of the FTP account. */
@@ -447,7 +509,7 @@ export type FtpAccountApiCreateFtpAccountRequest = {
447
509
  * Region to target. If none is passed will use default region from the
448
510
  * config.
449
511
  */
450
- region?: Region;
512
+ region?: ScwRegion;
451
513
  /** UUID of the hosting plan. */
452
514
  hostingId: string;
453
515
  /** Username for the new FTP account. */
@@ -462,7 +524,7 @@ export type FtpAccountApiListFtpAccountsRequest = {
462
524
  * Region to target. If none is passed will use default region from the
463
525
  * config.
464
526
  */
465
- region?: Region;
527
+ region?: ScwRegion;
466
528
  /** UUID of the hosting plan. */
467
529
  hostingId: string;
468
530
  /** Page number (must be a positive integer). */
@@ -482,7 +544,7 @@ export type FtpAccountApiRemoveFtpAccountRequest = {
482
544
  * Region to target. If none is passed will use default region from the
483
545
  * config.
484
546
  */
485
- region?: Region;
547
+ region?: ScwRegion;
486
548
  /** UUID of the hosting plan. */
487
549
  hostingId: string;
488
550
  /** Username of the FTP account to be deleted. */
@@ -516,14 +578,14 @@ export interface Hosting {
516
578
  /** Details of the hosting user. */
517
579
  user?: HostingUser;
518
580
  /** Region where the Web Hosting plan is hosted. */
519
- region: Region;
581
+ region: ScwRegion;
520
582
  }
521
583
  export type HostingApiCreateHostingRequest = {
522
584
  /**
523
585
  * Region to target. If none is passed will use default region from the
524
586
  * config.
525
587
  */
526
- region?: Region;
588
+ region?: ScwRegion;
527
589
  /** ID of the selected offer for the Web Hosting plan. */
528
590
  offerId: string;
529
591
  /** ID of the Scaleway Project in which to create the Web Hosting plan. */
@@ -557,7 +619,7 @@ export type HostingApiCreateSessionRequest = {
557
619
  * Region to target. If none is passed will use default region from the
558
620
  * config.
559
621
  */
560
- region?: Region;
622
+ region?: ScwRegion;
561
623
  /** Hosting ID. */
562
624
  hostingId: string;
563
625
  };
@@ -566,7 +628,7 @@ export type HostingApiDeleteHostingRequest = {
566
628
  * Region to target. If none is passed will use default region from the
567
629
  * config.
568
630
  */
569
- region?: Region;
631
+ region?: ScwRegion;
570
632
  /** Hosting ID. */
571
633
  hostingId: string;
572
634
  };
@@ -575,7 +637,7 @@ export type HostingApiGetHostingRequest = {
575
637
  * Region to target. If none is passed will use default region from the
576
638
  * config.
577
639
  */
578
- region?: Region;
640
+ region?: ScwRegion;
579
641
  /** Hosting ID. */
580
642
  hostingId: string;
581
643
  };
@@ -584,7 +646,7 @@ export type HostingApiGetResourceSummaryRequest = {
584
646
  * Region to target. If none is passed will use default region from the
585
647
  * config.
586
648
  */
587
- region?: Region;
649
+ region?: ScwRegion;
588
650
  /** Hosting ID. */
589
651
  hostingId: string;
590
652
  };
@@ -593,7 +655,7 @@ export type HostingApiListHostingsRequest = {
593
655
  * Region to target. If none is passed will use default region from the
594
656
  * config.
595
657
  */
596
- region?: Region;
658
+ region?: ScwRegion;
597
659
  /**
598
660
  * Page number to return, from the paginated results (must be a positive
599
661
  * integer).
@@ -642,7 +704,7 @@ export type HostingApiResetHostingPasswordRequest = {
642
704
  * Region to target. If none is passed will use default region from the
643
705
  * config.
644
706
  */
645
- region?: Region;
707
+ region?: ScwRegion;
646
708
  /** UUID of the hosting. */
647
709
  hostingId: string;
648
710
  };
@@ -651,7 +713,7 @@ export type HostingApiUpdateHostingRequest = {
651
713
  * Region to target. If none is passed will use default region from the
652
714
  * config.
653
715
  */
654
- region?: Region;
716
+ region?: ScwRegion;
655
717
  /** Hosting ID. */
656
718
  hostingId: string;
657
719
  /** New contact email for the Web Hosting plan. */
@@ -718,7 +780,7 @@ export type MailAccountApiChangeMailAccountPasswordRequest = {
718
780
  * Region to target. If none is passed will use default region from the
719
781
  * config.
720
782
  */
721
- region?: Region;
783
+ region?: ScwRegion;
722
784
  /** UUID of the hosting plan. */
723
785
  hostingId: string;
724
786
  /** Domain part of the mail account address. */
@@ -733,7 +795,7 @@ export type MailAccountApiCreateMailAccountRequest = {
733
795
  * Region to target. If none is passed will use default region from the
734
796
  * config.
735
797
  */
736
- region?: Region;
798
+ region?: ScwRegion;
737
799
  /** UUID of the hosting plan. */
738
800
  hostingId: string;
739
801
  /** Domain part of the mail account address. */
@@ -748,7 +810,7 @@ export type MailAccountApiListMailAccountsRequest = {
748
810
  * Region to target. If none is passed will use default region from the
749
811
  * config.
750
812
  */
751
- region?: Region;
813
+ region?: ScwRegion;
752
814
  /** UUID of the hosting plan. */
753
815
  hostingId: string;
754
816
  /** Page number (must be a positive integer). */
@@ -768,7 +830,7 @@ export type MailAccountApiRemoveMailAccountRequest = {
768
830
  * Region to target. If none is passed will use default region from the
769
831
  * config.
770
832
  */
771
- region?: Region;
833
+ region?: ScwRegion;
772
834
  /** UUID of the hosting plan. */
773
835
  hostingId: string;
774
836
  /** Domain part of the mail account address. */
@@ -781,7 +843,7 @@ export type OfferApiListOffersRequest = {
781
843
  * Region to target. If none is passed will use default region from the
782
844
  * config.
783
845
  */
784
- region?: Region;
846
+ region?: ScwRegion;
785
847
  /** Page number (must be a positive integer). */
786
848
  page?: number;
787
849
  /**
@@ -810,6 +872,10 @@ export interface ResourceSummary {
810
872
  /** Total number of active domains in the the Web Hosting plan. */
811
873
  websitesCount: number;
812
874
  }
875
+ export interface SearchDomainsResponse {
876
+ /** List of domains availability. */
877
+ domainsAvailable: DomainAvailability[];
878
+ }
813
879
  export interface Session {
814
880
  /** Logged user's session URL. */
815
881
  url: string;
@@ -819,7 +885,7 @@ export type WebsiteApiListWebsitesRequest = {
819
885
  * Region to target. If none is passed will use default region from the
820
886
  * config.
821
887
  */
822
- region?: Region;
888
+ region?: ScwRegion;
823
889
  /** UUID of the hosting plan. */
824
890
  hostingId: string;
825
891
  /** Page number (must be a positive integer). */
@@ -170,7 +170,7 @@ class API extends api.API {
170
170
  ),
171
171
  headers: jsonContentHeaders,
172
172
  method: "POST",
173
- path: `/webhosting/v1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/domains/${marshalling.validatePathParam("domain", request.domain)}/check-ownership`
173
+ path: `/webhosting/v1alpha1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/domains/${marshalling.validatePathParam("domain", request.domain)}/check-ownership`
174
174
  },
175
175
  marshalling_gen.unmarshalCheckUserOwnsDomainResponse
176
176
  );
@@ -243,7 +243,11 @@ class API extends api.API {
243
243
  }
244
244
  class ClassicMailAPI extends api.API {
245
245
  /** Lists the available regions of the API. */
246
- static LOCALITIES = ["fr-par", "nl-ams", "pl-waw"];
246
+ static LOCALITIES = [
247
+ "fr-par",
248
+ "nl-ams",
249
+ "pl-waw"
250
+ ];
247
251
  /**
248
252
  * Create a new mailbox within your hosting plan.. Create a new mailbox within
249
253
  * your hosting plan.
@@ -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 { CheckUserOwnsDomainRequest, CheckUserOwnsDomainResponse, ClassicMailApiCreateMailboxRequest, ClassicMailApiDeleteMailboxRequest, ClassicMailApiGetMailboxRequest, ClassicMailApiListMailboxesRequest, ClassicMailApiUpdateMailboxRequest, CreateHostingRequest, CreateSessionRequest, DeleteHostingRequest, DnsRecords, GetDomainDnsRecordsRequest, GetHostingRequest, Hosting, ListControlPanelsRequest, ListControlPanelsResponse, ListHostingsRequest, ListHostingsResponse, ListMailboxesResponse, ListOffersRequest, ListOffersResponse, Mailbox, ResetHostingPasswordRequest, ResetHostingPasswordResponse, RestoreHostingRequest, Session, UpdateHostingRequest } from './types.gen';
4
4
  /**
5
5
  * Web Hosting API.
@@ -8,7 +8,7 @@ import type { CheckUserOwnsDomainRequest, CheckUserOwnsDomainResponse, ClassicMa
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
  * Order a Web Hosting plan. Order a Web Hosting plan, specifying the offer
14
14
  * type required via the `offer_id` parameter.
@@ -127,7 +127,7 @@ export declare class API extends ParentAPI {
127
127
  */
128
128
  export declare class ClassicMailAPI extends ParentAPI {
129
129
  /** Lists the available regions of the API. */
130
- static readonly LOCALITIES: Region[];
130
+ static readonly LOCALITIES: ScwRegion[];
131
131
  /**
132
132
  * Create a new mailbox within your hosting plan.. Create a new mailbox within
133
133
  * your hosting plan.
@@ -168,7 +168,7 @@ class API extends API$1 {
168
168
  ),
169
169
  headers: jsonContentHeaders,
170
170
  method: "POST",
171
- path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/domains/${validatePathParam("domain", request.domain)}/check-ownership`
171
+ path: `/webhosting/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/domains/${validatePathParam("domain", request.domain)}/check-ownership`
172
172
  },
173
173
  unmarshalCheckUserOwnsDomainResponse
174
174
  );
@@ -241,7 +241,11 @@ class API extends API$1 {
241
241
  }
242
242
  class ClassicMailAPI extends API$1 {
243
243
  /** Lists the available regions of the API. */
244
- static LOCALITIES = ["fr-par", "nl-ams", "pl-waw"];
244
+ static LOCALITIES = [
245
+ "fr-par",
246
+ "nl-ams",
247
+ "pl-waw"
248
+ ];
245
249
  /**
246
250
  * Create a new mailbox within your hosting plan.. Create a new mailbox within
247
251
  * your hosting plan.
@@ -1,4 +1,4 @@
1
- import type { Money, Region } from '../../../bridge';
1
+ import type { Money, Region as ScwRegion } from '../../../bridge';
2
2
  import type { LanguageCode as StdLanguageCode } from '../../std/types.gen';
3
3
  export type DnsRecordStatus = 'unknown_status' | 'valid' | 'invalid';
4
4
  export type DnsRecordType = 'unknown_type' | 'a' | 'cname' | 'mx' | 'txt' | 'ns' | 'aaaa';
@@ -136,7 +136,7 @@ export interface Hosting {
136
136
  */
137
137
  oneTimePassword: string;
138
138
  /** Region where the Web Hosting plan is hosted. */
139
- region: Region;
139
+ region: ScwRegion;
140
140
  }
141
141
  export interface Mailbox {
142
142
  /** The ID of the mailbox. */
@@ -170,7 +170,7 @@ export type CheckUserOwnsDomainRequest = {
170
170
  * Region to target. If none is passed will use default region from the
171
171
  * config.
172
172
  */
173
- region?: Region;
173
+ region?: ScwRegion;
174
174
  /** Domain for which ownership is to be verified. */
175
175
  domain: string;
176
176
  /** ID of the project currently in use. */
@@ -185,7 +185,7 @@ export type ClassicMailApiCreateMailboxRequest = {
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
  /** The Online hosting ID. */
190
190
  onlineId: number;
191
191
  /** The email address of the mailbox. */
@@ -198,7 +198,7 @@ export type ClassicMailApiDeleteMailboxRequest = {
198
198
  * Region to target. If none is passed will use default region from the
199
199
  * config.
200
200
  */
201
- region?: Region;
201
+ region?: ScwRegion;
202
202
  /** The Online hosting ID. */
203
203
  onlineId: number;
204
204
  /** The ID of the mailbox to delete. */
@@ -209,7 +209,7 @@ export type ClassicMailApiGetMailboxRequest = {
209
209
  * Region to target. If none is passed will use default region from the
210
210
  * config.
211
211
  */
212
- region?: Region;
212
+ region?: ScwRegion;
213
213
  /** The Online hosting ID. */
214
214
  onlineId: number;
215
215
  /** The ID of the mailbox to get. */
@@ -220,7 +220,7 @@ export type ClassicMailApiListMailboxesRequest = {
220
220
  * Region to target. If none is passed will use default region from the
221
221
  * config.
222
222
  */
223
- region?: Region;
223
+ region?: ScwRegion;
224
224
  /** The Online hosting ID. */
225
225
  onlineId: number;
226
226
  /** Page number (must be a positive integer). */
@@ -238,7 +238,7 @@ export type ClassicMailApiUpdateMailboxRequest = {
238
238
  * Region to target. If none is passed will use default region from the
239
239
  * config.
240
240
  */
241
- region?: Region;
241
+ region?: ScwRegion;
242
242
  /** The Online hosting ID. */
243
243
  onlineId: number;
244
244
  /** The ID of the mailbox to update. */
@@ -251,7 +251,7 @@ export type CreateHostingRequest = {
251
251
  * Region to target. If none is passed will use default region from the
252
252
  * config.
253
253
  */
254
- region?: Region;
254
+ region?: ScwRegion;
255
255
  /** ID of the selected offer for the Web Hosting plan. */
256
256
  offerId: string;
257
257
  /** ID of the Scaleway Project in which to create the Web Hosting plan. */
@@ -280,7 +280,7 @@ export type CreateSessionRequest = {
280
280
  * Region to target. If none is passed will use default region from the
281
281
  * config.
282
282
  */
283
- region?: Region;
283
+ region?: ScwRegion;
284
284
  /** Hosting ID. */
285
285
  hostingId: string;
286
286
  };
@@ -289,7 +289,7 @@ export type DeleteHostingRequest = {
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
  /** Hosting ID. */
294
294
  hostingId: string;
295
295
  };
@@ -306,7 +306,7 @@ export type GetDomainDnsRecordsRequest = {
306
306
  * Region to target. If none is passed will use default region from the
307
307
  * config.
308
308
  */
309
- region?: Region;
309
+ region?: ScwRegion;
310
310
  /** Domain associated with the DNS records. */
311
311
  domain: string;
312
312
  };
@@ -315,7 +315,7 @@ export type GetHostingRequest = {
315
315
  * Region to target. If none is passed will use default region from the
316
316
  * config.
317
317
  */
318
- region?: Region;
318
+ region?: ScwRegion;
319
319
  /** Hosting ID. */
320
320
  hostingId: string;
321
321
  };
@@ -324,7 +324,7 @@ export type ListControlPanelsRequest = {
324
324
  * Region to target. If none is passed will use default region from the
325
325
  * config.
326
326
  */
327
- region?: Region;
327
+ region?: ScwRegion;
328
328
  /**
329
329
  * Page number to return, from the paginated results (must be a positive
330
330
  * integer).
@@ -347,7 +347,7 @@ export type ListHostingsRequest = {
347
347
  * Region to target. If none is passed will use default region from the
348
348
  * config.
349
349
  */
350
- region?: Region;
350
+ region?: ScwRegion;
351
351
  /**
352
352
  * Page number to return, from the paginated results (must be a positive
353
353
  * integer).
@@ -408,7 +408,7 @@ export type ListOffersRequest = {
408
408
  * Region to target. If none is passed will use default region from the
409
409
  * config.
410
410
  */
411
- region?: Region;
411
+ region?: ScwRegion;
412
412
  /** Sort order of offers in the response. */
413
413
  orderBy?: ListOffersRequestOrderBy;
414
414
  /**
@@ -438,7 +438,7 @@ export type ResetHostingPasswordRequest = {
438
438
  * Region to target. If none is passed will use default region from the
439
439
  * config.
440
440
  */
441
- region?: Region;
441
+ region?: ScwRegion;
442
442
  /** UUID of the hosting. */
443
443
  hostingId: string;
444
444
  };
@@ -451,7 +451,7 @@ export type RestoreHostingRequest = {
451
451
  * Region to target. If none is passed will use default region from the
452
452
  * config.
453
453
  */
454
- region?: Region;
454
+ region?: ScwRegion;
455
455
  /** Hosting ID. */
456
456
  hostingId: string;
457
457
  };
@@ -464,7 +464,7 @@ export type UpdateHostingRequest = {
464
464
  * Region to target. If none is passed will use default region from the
465
465
  * config.
466
466
  */
467
- region?: Region;
467
+ region?: ScwRegion;
468
468
  /** Hosting ID. */
469
469
  hostingId: string;
470
470
  /** New contact email for the Web Hosting plan. */
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const version = "v2.62.0";
3
+ const version = "v2.64.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.62.0";
2
- export declare const userAgent = "scaleway-sdk-js/v2.62.0";
1
+ export declare const version = "v2.64.0";
2
+ export declare const userAgent = "scaleway-sdk-js/v2.64.0";
@@ -1,4 +1,4 @@
1
- const version = "v2.62.0";
1
+ const version = "v2.64.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.63.0",
3
+ "version": "2.65.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": "0da03067b97486773c77346f11664b532adda8fc"
42
+ "gitHead": "48a1b50eb2502554d625991b0b4c6d051ac5c6ef"
43
43
  }