@scaleway/sdk 2.70.0 → 2.71.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 (89) hide show
  1. package/dist/api/applesilicon/v1alpha1/api.gen.cjs +3 -1
  2. package/dist/api/applesilicon/v1alpha1/api.gen.js +3 -1
  3. package/dist/api/baremetal/v1/api.gen.cjs +3 -1
  4. package/dist/api/baremetal/v1/api.gen.js +3 -1
  5. package/dist/api/baremetal/v1/marshalling.gen.cjs +4 -2
  6. package/dist/api/baremetal/v1/marshalling.gen.js +4 -2
  7. package/dist/api/baremetal/v1/types.gen.d.ts +65 -64
  8. package/dist/api/block/v1/api.gen.cjs +6 -2
  9. package/dist/api/block/v1/api.gen.js +6 -2
  10. package/dist/api/block/v1alpha1/api.gen.cjs +6 -2
  11. package/dist/api/block/v1alpha1/api.gen.js +6 -2
  12. package/dist/api/block/v1alpha1/marshalling.gen.cjs +0 -1
  13. package/dist/api/block/v1alpha1/marshalling.gen.d.ts +1 -2
  14. package/dist/api/block/v1alpha1/marshalling.gen.js +0 -1
  15. package/dist/api/container/v1beta1/api.gen.cjs +18 -6
  16. package/dist/api/container/v1beta1/api.gen.js +18 -6
  17. package/dist/api/dedibox/v1/api.gen.cjs +9 -3
  18. package/dist/api/dedibox/v1/api.gen.js +9 -3
  19. package/dist/api/domain/v2beta1/api.gen.cjs +3 -1
  20. package/dist/api/domain/v2beta1/api.gen.js +3 -1
  21. package/dist/api/edge_services/v1beta1/api.gen.cjs +6 -2
  22. package/dist/api/edge_services/v1beta1/api.gen.js +6 -2
  23. package/dist/api/edge_services/v1beta1/types.gen.d.ts +1 -1
  24. package/dist/api/function/v1beta1/api.gen.cjs +18 -6
  25. package/dist/api/function/v1beta1/api.gen.js +18 -6
  26. package/dist/api/function/v1beta1/types.gen.d.ts +1 -1
  27. package/dist/api/iam/v1alpha1/marshalling.gen.cjs +12 -0
  28. package/dist/api/iam/v1alpha1/marshalling.gen.js +12 -0
  29. package/dist/api/iam/v1alpha1/types.gen.d.ts +24 -0
  30. package/dist/api/iam/v1alpha1/validation-rules.gen.cjs +15 -0
  31. package/dist/api/iam/v1alpha1/validation-rules.gen.d.ts +14 -0
  32. package/dist/api/iam/v1alpha1/validation-rules.gen.js +15 -0
  33. package/dist/api/inference/v1/api.gen.cjs +6 -2
  34. package/dist/api/inference/v1/api.gen.js +6 -2
  35. package/dist/api/inference/v1/marshalling.gen.cjs +4 -4
  36. package/dist/api/inference/v1/marshalling.gen.js +4 -4
  37. package/dist/api/inference/v1/types.gen.d.ts +32 -30
  38. package/dist/api/inference/v1beta1/api.gen.cjs +3 -1
  39. package/dist/api/inference/v1beta1/api.gen.js +3 -1
  40. package/dist/api/instance/v1/marshalling.gen.cjs +0 -1
  41. package/dist/api/instance/v1/marshalling.gen.js +0 -1
  42. package/dist/api/instance/v1/types.gen.d.ts +0 -2
  43. package/dist/api/k8s/v1/api.gen.cjs +3 -1
  44. package/dist/api/k8s/v1/api.gen.js +3 -1
  45. package/dist/api/k8s/v1/marshalling.gen.cjs +1 -0
  46. package/dist/api/k8s/v1/marshalling.gen.js +1 -0
  47. package/dist/api/k8s/v1/types.gen.d.ts +5 -0
  48. package/dist/api/lb/v1/types.gen.d.ts +3 -3
  49. package/dist/api/mongodb/v1alpha1/api.gen.cjs +6 -2
  50. package/dist/api/mongodb/v1alpha1/api.gen.js +6 -2
  51. package/dist/api/qaas/v1alpha1/api.gen.cjs +6 -2
  52. package/dist/api/qaas/v1alpha1/api.gen.js +6 -2
  53. package/dist/api/rdb/v1/api.gen.cjs +6 -2
  54. package/dist/api/rdb/v1/api.gen.js +6 -2
  55. package/dist/api/redis/v1/api.gen.cjs +3 -1
  56. package/dist/api/redis/v1/api.gen.js +3 -1
  57. package/dist/api/registry/v1/api.gen.cjs +9 -3
  58. package/dist/api/registry/v1/api.gen.js +9 -3
  59. package/dist/api/secret/v1beta1/api.gen.cjs +32 -0
  60. package/dist/api/secret/v1beta1/api.gen.d.ts +17 -1
  61. package/dist/api/secret/v1beta1/api.gen.js +32 -0
  62. package/dist/api/secret/v1beta1/index.gen.d.ts +1 -1
  63. package/dist/api/secret/v1beta1/types.gen.d.ts +17 -0
  64. package/dist/api/serverless_sqldb/v1alpha1/api.gen.cjs +3 -1
  65. package/dist/api/serverless_sqldb/v1alpha1/api.gen.js +3 -1
  66. package/dist/api/vpc/v2/api.gen.cjs +33 -0
  67. package/dist/api/vpc/v2/api.gen.d.ts +17 -1
  68. package/dist/api/vpc/v2/api.gen.js +34 -1
  69. package/dist/api/vpc/v2/index.gen.d.ts +1 -1
  70. package/dist/api/vpc/v2/marshalling.gen.cjs +59 -0
  71. package/dist/api/vpc/v2/marshalling.gen.d.ts +4 -1
  72. package/dist/api/vpc/v2/marshalling.gen.js +59 -0
  73. package/dist/api/vpc/v2/types.gen.d.ts +80 -0
  74. package/dist/api/vpc/v2/validation-rules.gen.cjs +18 -0
  75. package/dist/api/vpc/v2/validation-rules.gen.d.ts +17 -0
  76. package/dist/api/vpc/v2/validation-rules.gen.js +18 -0
  77. package/dist/api/vpcgw/v1/api.gen.cjs +3 -1
  78. package/dist/api/vpcgw/v1/api.gen.js +3 -1
  79. package/dist/api/vpcgw/v2/api.gen.cjs +3 -1
  80. package/dist/api/vpcgw/v2/api.gen.js +3 -1
  81. package/dist/api/webhosting/v1/api.gen.cjs +6 -2
  82. package/dist/api/webhosting/v1/api.gen.js +6 -2
  83. package/dist/api/webhosting/v1/marshalling.gen.cjs +17 -14
  84. package/dist/api/webhosting/v1/marshalling.gen.js +17 -14
  85. package/dist/api/webhosting/v1/types.gen.d.ts +13 -3
  86. package/dist/scw/constants.cjs +1 -1
  87. package/dist/scw/constants.d.ts +2 -2
  88. package/dist/scw/constants.js +1 -1
  89. package/package.json +2 -2
@@ -75,7 +75,9 @@ class API extends API$1 {
75
75
  * @returns A Promise of Gateway
76
76
  */
77
77
  waitForGateway = (request, options) => waitForResource(
78
- options?.stop ?? ((res) => Promise.resolve(!GATEWAY_TRANSIENT_STATUSES.includes(res.status))),
78
+ options?.stop ?? ((res) => Promise.resolve(
79
+ !GATEWAY_TRANSIENT_STATUSES.includes(res.status)
80
+ )),
79
81
  this.getGateway,
80
82
  request,
81
83
  options
@@ -356,7 +356,9 @@ class DnsAPI extends api.API {
356
356
  * @returns A Promise of Domain
357
357
  */
358
358
  waitForDomain = (request, options) => intervalRetrier.waitForResource(
359
- options?.stop ?? ((res) => Promise.resolve(!content_gen.DOMAIN_TRANSIENT_STATUSES.includes(res.status))),
359
+ options?.stop ?? ((res) => Promise.resolve(
360
+ !content_gen.DOMAIN_TRANSIENT_STATUSES.includes(res.status)
361
+ )),
360
362
  this.getDomain,
361
363
  request,
362
364
  options
@@ -472,7 +474,9 @@ class HostingAPI extends api.API {
472
474
  * @returns A Promise of Hosting
473
475
  */
474
476
  waitForHosting = (request, options) => intervalRetrier.waitForResource(
475
- options?.stop ?? ((res) => Promise.resolve(!content_gen.HOSTING_TRANSIENT_STATUSES.includes(res.status))),
477
+ options?.stop ?? ((res) => Promise.resolve(
478
+ !content_gen.HOSTING_TRANSIENT_STATUSES.includes(res.status)
479
+ )),
476
480
  this.getHosting,
477
481
  request,
478
482
  options
@@ -354,7 +354,9 @@ class DnsAPI extends API$1 {
354
354
  * @returns A Promise of Domain
355
355
  */
356
356
  waitForDomain = (request, options) => waitForResource(
357
- options?.stop ?? ((res) => Promise.resolve(!DOMAIN_TRANSIENT_STATUSES.includes(res.status))),
357
+ options?.stop ?? ((res) => Promise.resolve(
358
+ !DOMAIN_TRANSIENT_STATUSES.includes(res.status)
359
+ )),
358
360
  this.getDomain,
359
361
  request,
360
362
  options
@@ -470,7 +472,9 @@ class HostingAPI extends API$1 {
470
472
  * @returns A Promise of Hosting
471
473
  */
472
474
  waitForHosting = (request, options) => waitForResource(
473
- options?.stop ?? ((res) => Promise.resolve(!HOSTING_TRANSIENT_STATUSES.includes(res.status))),
475
+ options?.stop ?? ((res) => Promise.resolve(
476
+ !HOSTING_TRANSIENT_STATUSES.includes(res.status)
477
+ )),
474
478
  this.getHosting,
475
479
  request,
476
480
  options
@@ -57,6 +57,20 @@ const unmarshalCheckUserOwnsDomainResponse = (data) => {
57
57
  ownsDomain: data.owns_domain
58
58
  };
59
59
  };
60
+ const unmarshalAutoConfigDomainDns = (data) => {
61
+ if (!json.isJSONObject(data)) {
62
+ throw new TypeError(
63
+ `Unmarshalling the type 'AutoConfigDomainDns' failed as data isn't a dictionary.`
64
+ );
65
+ }
66
+ return {
67
+ allRecords: data.all_records,
68
+ mailRecords: data.mail_records,
69
+ nameservers: data.nameservers,
70
+ none: data.none,
71
+ webRecords: data.web_records
72
+ };
73
+ };
60
74
  const unmarshalDnsRecord = (data) => {
61
75
  if (!json.isJSONObject(data)) {
62
76
  throw new TypeError(
@@ -92,25 +106,13 @@ const unmarshalDnsRecords = (data) => {
92
106
  );
93
107
  }
94
108
  return {
95
- dnsConfig: data.dns_config,
109
+ autoConfigDomainDns: data.auto_config_domain_dns ? unmarshalAutoConfigDomainDns(data.auto_config_domain_dns) : void 0,
110
+ dnsConfig: data.dns_config ? data.dns_config : void 0,
96
111
  nameServers: marshalling.unmarshalArrayOfObject(data.name_servers, unmarshalNameserver),
97
112
  records: marshalling.unmarshalArrayOfObject(data.records, unmarshalDnsRecord),
98
113
  status: data.status
99
114
  };
100
115
  };
101
- const unmarshalAutoConfigDomainDns = (data) => {
102
- if (!json.isJSONObject(data)) {
103
- throw new TypeError(
104
- `Unmarshalling the type 'AutoConfigDomainDns' failed as data isn't a dictionary.`
105
- );
106
- }
107
- return {
108
- allRecords: data.all_records,
109
- mailRecords: data.mail_records,
110
- nameservers: data.nameservers,
111
- webRecords: data.web_records
112
- };
113
- };
114
116
  const unmarshalDomain = (data) => {
115
117
  if (!json.isJSONObject(data)) {
116
118
  throw new TypeError(
@@ -468,6 +470,7 @@ const marshalAutoConfigDomainDns = (request, defaults) => ({
468
470
  all_records: request.allRecords,
469
471
  mail_records: request.mailRecords,
470
472
  nameservers: request.nameservers,
473
+ none: request.none,
471
474
  web_records: request.webRecords
472
475
  });
473
476
  const marshalSyncDomainDnsRecordsRequestRecord = (request, defaults) => ({
@@ -55,6 +55,20 @@ const unmarshalCheckUserOwnsDomainResponse = (data) => {
55
55
  ownsDomain: data.owns_domain
56
56
  };
57
57
  };
58
+ const unmarshalAutoConfigDomainDns = (data) => {
59
+ if (!isJSONObject(data)) {
60
+ throw new TypeError(
61
+ `Unmarshalling the type 'AutoConfigDomainDns' failed as data isn't a dictionary.`
62
+ );
63
+ }
64
+ return {
65
+ allRecords: data.all_records,
66
+ mailRecords: data.mail_records,
67
+ nameservers: data.nameservers,
68
+ none: data.none,
69
+ webRecords: data.web_records
70
+ };
71
+ };
58
72
  const unmarshalDnsRecord = (data) => {
59
73
  if (!isJSONObject(data)) {
60
74
  throw new TypeError(
@@ -90,25 +104,13 @@ const unmarshalDnsRecords = (data) => {
90
104
  );
91
105
  }
92
106
  return {
93
- dnsConfig: data.dns_config,
107
+ autoConfigDomainDns: data.auto_config_domain_dns ? unmarshalAutoConfigDomainDns(data.auto_config_domain_dns) : void 0,
108
+ dnsConfig: data.dns_config ? data.dns_config : void 0,
94
109
  nameServers: unmarshalArrayOfObject(data.name_servers, unmarshalNameserver),
95
110
  records: unmarshalArrayOfObject(data.records, unmarshalDnsRecord),
96
111
  status: data.status
97
112
  };
98
113
  };
99
- const unmarshalAutoConfigDomainDns = (data) => {
100
- if (!isJSONObject(data)) {
101
- throw new TypeError(
102
- `Unmarshalling the type 'AutoConfigDomainDns' failed as data isn't a dictionary.`
103
- );
104
- }
105
- return {
106
- allRecords: data.all_records,
107
- mailRecords: data.mail_records,
108
- nameservers: data.nameservers,
109
- webRecords: data.web_records
110
- };
111
- };
112
114
  const unmarshalDomain = (data) => {
113
115
  if (!isJSONObject(data)) {
114
116
  throw new TypeError(
@@ -466,6 +468,7 @@ const marshalAutoConfigDomainDns = (request, defaults) => ({
466
468
  all_records: request.allRecords,
467
469
  mail_records: request.mailRecords,
468
470
  nameservers: request.nameservers,
471
+ none: request.none,
469
472
  web_records: request.webRecords
470
473
  });
471
474
  const marshalSyncDomainDnsRecordsRequestRecord = (request, defaults) => ({
@@ -70,6 +70,11 @@ export interface AutoConfigDomainDns {
70
70
  * other fields.
71
71
  */
72
72
  allRecords: boolean;
73
+ /**
74
+ * No automatic domain configuration. Users must configure their domain for
75
+ * the Web Hosting to work.
76
+ */
77
+ none: boolean;
73
78
  }
74
79
  export interface CreateHostingRequestDomainConfiguration {
75
80
  updateNameservers: boolean;
@@ -494,7 +499,7 @@ export type DnsApiSyncDomainDnsRecordsRequest = {
494
499
  * use auto_config_domain_dns).
495
500
  */
496
501
  updateNameservers?: boolean;
497
- /** Custom records to synchronize. */
502
+ /** @deprecated Custom records to synchronize. */
498
503
  customRecords?: SyncDomainDnsRecordsRequestRecord[];
499
504
  /** Whether or not to synchronize each types of records. */
500
505
  autoConfigDomainDns?: AutoConfigDomainDns;
@@ -506,8 +511,13 @@ export interface DnsRecords {
506
511
  nameServers: Nameserver[];
507
512
  /** Status of the records. */
508
513
  status: DnsRecordsStatus;
509
- /** Records dns auto configuration settings. */
510
- dnsConfig: DomainDnsAction[];
514
+ /**
515
+ * @deprecated Records dns auto configuration settings (deprecated, use
516
+ * auto_config_domain_dns).
517
+ */
518
+ dnsConfig?: DomainDnsAction[];
519
+ /** Whether or not to synchronize each types of records. */
520
+ autoConfigDomainDns?: AutoConfigDomainDns;
511
521
  }
512
522
  export interface Domain {
513
523
  /** Name of the domain. */
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const version = "v2.69.0";
3
+ const version = "v2.70.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.69.0";
2
- export declare const userAgent = "scaleway-sdk-js/v2.69.0";
1
+ export declare const version = "v2.70.0";
2
+ export declare const userAgent = "scaleway-sdk-js/v2.70.0";
@@ -1,4 +1,4 @@
1
- const version = "v2.69.0";
1
+ const version = "v2.70.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.70.0",
3
+ "version": "2.71.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": "5edf3a36158f71863fe38a4858dee0728c16c00c"
42
+ "gitHead": "63b65bdaab2904d638e171a1b28eaa855e0a81ac"
43
43
  }