@scaleway/sdk 1.34.0 → 2.0.0-alpha.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 (61) hide show
  1. package/dist/api/account/v2/api.gen.js +1 -1
  2. package/dist/api/account/v3/api.gen.js +1 -1
  3. package/dist/api/applesilicon/v1alpha1/api.gen.js +1 -1
  4. package/dist/api/applesilicon/v1alpha1/marshalling.gen.js +26 -26
  5. package/dist/api/baremetal/v1/api.gen.js +6 -6
  6. package/dist/api/baremetal/v1/marshalling.gen.js +109 -120
  7. package/dist/api/billing/v2alpha1/api.gen.js +3 -3
  8. package/dist/api/billing/v2alpha1/marshalling.gen.js +9 -9
  9. package/dist/api/cockpit/v1beta1/api.gen.js +47 -71
  10. package/dist/api/cockpit/v1beta1/marshalling.gen.js +43 -63
  11. package/dist/api/container/v1beta1/api.gen.js +11 -11
  12. package/dist/api/container/v1beta1/marshalling.gen.js +76 -102
  13. package/dist/api/document_db/v1beta1/api.gen.js +6 -6
  14. package/dist/api/document_db/v1beta1/marshalling.gen.js +169 -225
  15. package/dist/api/domain/v2beta1/api.gen.js +45 -38
  16. package/dist/api/domain/v2beta1/index.gen.js +2 -0
  17. package/dist/api/domain/v2beta1/marshalling.gen.js +361 -575
  18. package/dist/api/flexibleip/v1alpha1/api.gen.js +15 -7
  19. package/dist/api/flexibleip/v1alpha1/marshalling.gen.js +2 -2
  20. package/dist/api/function/v1beta1/api.gen.js +11 -11
  21. package/dist/api/function/v1beta1/marshalling.gen.js +103 -129
  22. package/dist/api/iam/v1alpha1/api.gen.js +64 -32
  23. package/dist/api/iam/v1alpha1/marshalling.gen.js +68 -78
  24. package/dist/api/instance/v1/api.gen.js +1 -1
  25. package/dist/api/instance/v1/marshalling.gen.js +397 -602
  26. package/dist/api/iot/v1/api.gen.js +35 -27
  27. package/dist/api/iot/v1/marshalling.gen.js +111 -162
  28. package/dist/api/ipfs/v1alpha1/api.gen.js +2 -2
  29. package/dist/api/ipfs/v1alpha1/marshalling.gen.js +23 -27
  30. package/dist/api/k8s/v1/api.gen.js +3 -3
  31. package/dist/api/k8s/v1/marshalling.gen.js +109 -194
  32. package/dist/api/lb/v1/api.gen.js +583 -552
  33. package/dist/api/lb/v1/marshalling.gen.js +245 -361
  34. package/dist/api/marketplace/v1/marshalling.gen.js +11 -11
  35. package/dist/api/marketplace/v2/api.gen.js +6 -6
  36. package/dist/api/mnq/v1alpha1/api.gen.js +21 -14
  37. package/dist/api/mnq/v1alpha1/marshalling.gen.js +35 -40
  38. package/dist/api/rdb/v1/api.gen.js +7 -7
  39. package/dist/api/rdb/v1/marshalling.gen.js +184 -240
  40. package/dist/api/redis/v1/api.gen.js +1 -1
  41. package/dist/api/redis/v1/marshalling.gen.js +73 -97
  42. package/dist/api/registry/v1/api.gen.js +3 -3
  43. package/dist/api/registry/v1/marshalling.gen.js +5 -7
  44. package/dist/api/secret/v1alpha1/api.gen.js +2 -2
  45. package/dist/api/secret/v1alpha1/marshalling.gen.js +20 -30
  46. package/dist/api/tem/v1alpha1/api.gen.js +1 -1
  47. package/dist/api/tem/v1alpha1/marshalling.gen.js +52 -61
  48. package/dist/api/test/v1/api.gen.js +8 -25
  49. package/dist/api/test/v1/marshalling.gen.js +5 -7
  50. package/dist/api/vpc/v1/api.gen.js +1 -1
  51. package/dist/api/vpc/v2/api.gen.js +2 -2
  52. package/dist/api/vpc/v2/marshalling.gen.js +3 -5
  53. package/dist/api/vpcgw/v1/api.gen.js +6 -6
  54. package/dist/api/vpcgw/v1/marshalling.gen.js +36 -49
  55. package/dist/api/webhosting/v1alpha1/api.gen.js +56 -4
  56. package/dist/api/webhosting/v1alpha1/index.gen.js +1 -1
  57. package/dist/api/webhosting/v1alpha1/marshalling.gen.js +69 -42
  58. package/dist/api/webhosting/v1alpha1/validation-rules.gen.js +10 -1
  59. package/dist/index.cjs +3127 -3989
  60. package/dist/index.d.ts +9658 -12221
  61. package/package.json +2 -2
@@ -14,14 +14,13 @@ const jsonContentHeaders = {
14
14
  /**
15
15
  * Domains and DNS API.
16
16
  *
17
- * Domains and DNS API. Manage your domains, DNS zones and records with the
18
- * Domains and DNS API.
17
+ * Manage your domains, DNS zones and records with the Domains and DNS API.
19
18
  */
20
19
  class API extends API$1 {
21
20
  pageOfListDNSZones = request => this.client.fetch({
22
21
  method: 'GET',
23
22
  path: `/domain/v2beta1/dns-zones`,
24
- urlParams: urlParams(['created_after', request.createdAfter], ['created_before', request.createdBefore], ['dns_zone', request.dnsZone], ['dns_zones', request.dnsZones], ['domain', request.domain], ['order_by', request.orderBy ?? 'domain_asc'], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId], ['updated_after', request.updatedAfter], ['updated_before', request.updatedBefore])
23
+ urlParams: urlParams(['created_after', request.createdAfter], ['created_before', request.createdBefore], ['dns_zone', request.dnsZone], ['dns_zones', request.dnsZones], ['domain', request.domain], ['order_by', request.orderBy], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId], ['updated_after', request.updatedAfter], ['updated_before', request.updatedBefore])
25
24
  }, unmarshalListDNSZonesResponse);
26
25
 
27
26
  /**
@@ -88,7 +87,7 @@ class API extends API$1 {
88
87
  pageOfListDNSZoneRecords = request => this.client.fetch({
89
88
  method: 'GET',
90
89
  path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}/records`,
91
- urlParams: urlParams(['id', request.id], ['name', request.name], ['order_by', request.orderBy ?? 'name_asc'], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId], ['type', request.type ?? 'unknown'])
90
+ urlParams: urlParams(['id', request.id], ['name', request.name], ['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId], ['type', request.type])
92
91
  }, unmarshalListDNSZoneRecordsResponse);
93
92
 
94
93
  /**
@@ -176,7 +175,7 @@ class API extends API$1 {
176
175
  exportRawDNSZone = request => this.client.fetch({
177
176
  method: 'GET',
178
177
  path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}/raw`,
179
- urlParams: urlParams(['dl', 1], ['format', request.format ?? 'unknown_raw_format']),
178
+ urlParams: urlParams(['dl', 1], ['format', request.format]),
180
179
  responseType: 'blob'
181
180
  });
182
181
 
@@ -367,7 +366,7 @@ class API extends API$1 {
367
366
  /**
368
367
  * Domains and DNS - Registrar API.
369
368
  *
370
- * Domains and DNS - Registrar API. Manage your domains and contacts.
369
+ * Manage your domains and contacts.
371
370
  */
372
371
  class RegistrarAPI extends API$1 {
373
372
  pageOfListTasks = (() => {
@@ -379,7 +378,7 @@ class RegistrarAPI extends API$1 {
379
378
  return _this.client.fetch({
380
379
  method: 'GET',
381
380
  path: `/domain/v2beta1/tasks`,
382
- urlParams: urlParams(['domain', request.domain], ['order_by', request.orderBy ?? 'domain_desc'], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? _this.client.settings.defaultPageSize], ['project_id', request.projectId], ['statuses', request.statuses], ['types', request.types])
381
+ urlParams: urlParams(['domain', request.domain], ['order_by', request.orderBy], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? _this.client.settings.defaultPageSize], ['project_id', request.projectId], ['statuses', request.statuses], ['types', request.types])
383
382
  }, unmarshalListTasksResponse);
384
383
  };
385
384
  })();
@@ -435,12 +434,20 @@ class RegistrarAPI extends API$1 {
435
434
  * @param request - The request {@link RegistrarApiTransferInDomainRequest}
436
435
  * @returns A Promise of OrderResponse
437
436
  */
438
- transferInDomain = request => this.client.fetch({
439
- body: JSON.stringify(marshalRegistrarApiTransferInDomainRequest(request, this.client.settings)),
440
- headers: jsonContentHeaders,
441
- method: 'POST',
442
- path: `/domain/v2beta1/domains/transfer-domains`
443
- }, unmarshalOrderResponse);
437
+ transferInDomain = (() => {
438
+ var _this3 = this;
439
+ return function (request) {
440
+ if (request === void 0) {
441
+ request = {};
442
+ }
443
+ return _this3.client.fetch({
444
+ body: JSON.stringify(marshalRegistrarApiTransferInDomainRequest(request, _this3.client.settings)),
445
+ headers: jsonContentHeaders,
446
+ method: 'POST',
447
+ path: `/domain/v2beta1/domains/transfer-domains`
448
+ }, unmarshalOrderResponse);
449
+ };
450
+ })();
444
451
 
445
452
  /**
446
453
  * Trade a domain's contact. Request to change a domain's contact owner.<br/>
@@ -499,13 +506,13 @@ class RegistrarAPI extends API$1 {
499
506
  * @returns A Promise of CheckContactsCompatibilityResponse
500
507
  */
501
508
  checkContactsCompatibility = (() => {
502
- var _this3 = this;
509
+ var _this4 = this;
503
510
  return function (request) {
504
511
  if (request === void 0) {
505
512
  request = {};
506
513
  }
507
- return _this3.client.fetch({
508
- body: JSON.stringify(marshalRegistrarApiCheckContactsCompatibilityRequest(request, _this3.client.settings)),
514
+ return _this4.client.fetch({
515
+ body: JSON.stringify(marshalRegistrarApiCheckContactsCompatibilityRequest(request, _this4.client.settings)),
509
516
  headers: jsonContentHeaders,
510
517
  method: 'POST',
511
518
  path: `/domain/v2beta1/check-contacts-compatibility`
@@ -513,15 +520,15 @@ class RegistrarAPI extends API$1 {
513
520
  };
514
521
  })();
515
522
  pageOfListContacts = (() => {
516
- var _this4 = this;
523
+ var _this5 = this;
517
524
  return function (request) {
518
525
  if (request === void 0) {
519
526
  request = {};
520
527
  }
521
- return _this4.client.fetch({
528
+ return _this5.client.fetch({
522
529
  method: 'GET',
523
530
  path: `/domain/v2beta1/contacts`,
524
- urlParams: urlParams(['domain', request.domain], ['email_status', request.emailStatus ?? 'email_status_unknown'], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? _this4.client.settings.defaultPageSize], ['project_id', request.projectId], ['role', request.role ?? 'unknown_role'])
531
+ urlParams: urlParams(['domain', request.domain], ['email_status', request.emailStatus], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? _this5.client.settings.defaultPageSize], ['project_id', request.projectId], ['role', request.role])
525
532
  }, unmarshalListContactsResponse);
526
533
  };
527
534
  })();
@@ -534,12 +541,12 @@ class RegistrarAPI extends API$1 {
534
541
  * @returns A Promise of ListContactsResponse
535
542
  */
536
543
  listContacts = (() => {
537
- var _this5 = this;
544
+ var _this6 = this;
538
545
  return function (request) {
539
546
  if (request === void 0) {
540
547
  request = {};
541
548
  }
542
- return enrichForPagination('contacts', _this5.pageOfListContacts, request);
549
+ return enrichForPagination('contacts', _this6.pageOfListContacts, request);
543
550
  };
544
551
  })();
545
552
 
@@ -568,15 +575,15 @@ class RegistrarAPI extends API$1 {
568
575
  path: `/domain/v2beta1/contacts/${validatePathParam('contactId', request.contactId)}`
569
576
  }, unmarshalContact);
570
577
  pageOfListDomains = (() => {
571
- var _this6 = this;
578
+ var _this7 = this;
572
579
  return function (request) {
573
580
  if (request === void 0) {
574
581
  request = {};
575
582
  }
576
- return _this6.client.fetch({
583
+ return _this7.client.fetch({
577
584
  method: 'GET',
578
585
  path: `/domain/v2beta1/domains`,
579
- urlParams: urlParams(['domain', request.domain], ['is_external', request.isExternal], ['order_by', request.orderBy ?? 'domain_asc'], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? _this6.client.settings.defaultPageSize], ['project_id', request.projectId], ['registrar', request.registrar], ['status', request.status ?? 'status_unknown'])
586
+ urlParams: urlParams(['domain', request.domain], ['is_external', request.isExternal], ['order_by', request.orderBy], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? _this7.client.settings.defaultPageSize], ['project_id', request.projectId], ['registrar', request.registrar], ['status', request.status])
580
587
  }, unmarshalListDomainsResponse);
581
588
  };
582
589
  })();
@@ -588,24 +595,24 @@ class RegistrarAPI extends API$1 {
588
595
  * @returns A Promise of ListDomainsResponse
589
596
  */
590
597
  listDomains = (() => {
591
- var _this7 = this;
598
+ var _this8 = this;
592
599
  return function (request) {
593
600
  if (request === void 0) {
594
601
  request = {};
595
602
  }
596
- return enrichForPagination('domains', _this7.pageOfListDomains, request);
603
+ return enrichForPagination('domains', _this8.pageOfListDomains, request);
597
604
  };
598
605
  })();
599
606
  pageOfListRenewableDomains = (() => {
600
- var _this8 = this;
607
+ var _this9 = this;
601
608
  return function (request) {
602
609
  if (request === void 0) {
603
610
  request = {};
604
611
  }
605
- return _this8.client.fetch({
612
+ return _this9.client.fetch({
606
613
  method: 'GET',
607
614
  path: `/domain/v2beta1/renewable-domains`,
608
- urlParams: urlParams(['order_by', request.orderBy ?? 'domain_asc'], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? _this8.client.settings.defaultPageSize], ['project_id', request.projectId])
615
+ urlParams: urlParams(['order_by', request.orderBy], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? _this9.client.settings.defaultPageSize], ['project_id', request.projectId])
609
616
  }, unmarshalListRenewableDomainsResponse);
610
617
  };
611
618
  })();
@@ -619,12 +626,12 @@ class RegistrarAPI extends API$1 {
619
626
  * @returns A Promise of ListRenewableDomainsResponse
620
627
  */
621
628
  listRenewableDomains = (() => {
622
- var _this9 = this;
629
+ var _this10 = this;
623
630
  return function (request) {
624
631
  if (request === void 0) {
625
632
  request = {};
626
633
  }
627
- return enrichForPagination('domains', _this9.pageOfListRenewableDomains, request);
634
+ return enrichForPagination('domains', _this10.pageOfListRenewableDomains, request);
628
635
  };
629
636
  })();
630
637
 
@@ -643,7 +650,7 @@ class RegistrarAPI extends API$1 {
643
650
  /**
644
651
  * Waits for {@link Domain} to be in a final state.
645
652
  *
646
- * @param request - The request {@link GetDomainRequest}
653
+ * @param request - The request {@link RegistrarApiGetDomainRequest}
647
654
  * @param options - The waiting options
648
655
  * @returns A Promise of Domain
649
656
  */
@@ -784,15 +791,15 @@ class RegistrarAPI extends API$1 {
784
791
  urlParams: urlParams(['domains', request.domains], ['strict_search', request.strictSearch], ['tlds', request.tlds])
785
792
  }, unmarshalSearchAvailableDomainsResponse);
786
793
  pageOfListTlds = (() => {
787
- var _this10 = this;
794
+ var _this11 = this;
788
795
  return function (request) {
789
796
  if (request === void 0) {
790
797
  request = {};
791
798
  }
792
- return _this10.client.fetch({
799
+ return _this11.client.fetch({
793
800
  method: 'GET',
794
801
  path: `/domain/v2beta1/tlds`,
795
- urlParams: urlParams(['order_by', request.orderBy ?? 'name_asc'], ['page', request.page], ['page_size', request.pageSize ?? _this10.client.settings.defaultPageSize], ['tlds', request.tlds])
802
+ urlParams: urlParams(['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? _this11.client.settings.defaultPageSize], ['tlds', request.tlds])
796
803
  }, unmarshalListTldsResponse);
797
804
  };
798
805
  })();
@@ -804,12 +811,12 @@ class RegistrarAPI extends API$1 {
804
811
  * @returns A Promise of ListTldsResponse
805
812
  */
806
813
  listTlds = (() => {
807
- var _this11 = this;
814
+ var _this12 = this;
808
815
  return function (request) {
809
816
  if (request === void 0) {
810
817
  request = {};
811
818
  }
812
- return enrichForPagination('tlds', _this11.pageOfListTlds, request);
819
+ return enrichForPagination('tlds', _this12.pageOfListTlds, request);
813
820
  };
814
821
  })();
815
822
 
@@ -854,7 +861,7 @@ class RegistrarAPI extends API$1 {
854
861
  }, unmarshalHost);
855
862
 
856
863
  /**
857
- * Delete a domain's hostname. Delete a domain's hostname.
864
+ * Delete a domain's hostname.
858
865
  *
859
866
  * @param request - The request {@link RegistrarApiDeleteDomainHostRequest}
860
867
  * @returns A Promise of Host
@@ -3,3 +3,5 @@ export { DNS_ZONE_TRANSIENT_STATUSES, DOMAIN_FEATURE_TRANSIENT_STATUSES, DOMAIN_
3
3
 
4
4
  // This file was automatically generated. DO NOT EDIT.
5
5
  // If you have any remark or suggestion do not hesitate to open an issue.
6
+
7
+ // For backward compatibility