@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
@@ -90,6 +90,7 @@ const unmarshalDnsRecords = (data) => {
90
90
  );
91
91
  }
92
92
  return {
93
+ dnsConfig: data.dns_config,
93
94
  nameServers: unmarshalArrayOfObject(data.name_servers, unmarshalNameserver),
94
95
  records: unmarshalArrayOfObject(data.records, unmarshalDnsRecord),
95
96
  status: data.status
@@ -201,8 +202,9 @@ const unmarshalHosting = (data) => {
201
202
  }
202
203
  return {
203
204
  createdAt: unmarshalDate(data.created_at),
204
- dnsStatus: data.dns_status,
205
+ dnsStatus: data.dns_status ? data.dns_status : void 0,
205
206
  domain: data.domain,
207
+ domainStatus: data.domain_status,
206
208
  id: data.id,
207
209
  ipv4: data.ipv4,
208
210
  offer: data.offer ? unmarshalOffer(data.offer) : void 0,
@@ -284,14 +286,16 @@ const unmarshalHostingSummary = (data) => {
284
286
  }
285
287
  return {
286
288
  createdAt: unmarshalDate(data.created_at),
287
- dnsStatus: data.dns_status,
289
+ dnsStatus: data.dns_status ? data.dns_status : void 0,
288
290
  domain: data.domain,
291
+ domainStatus: data.domain_status,
292
+ hostingStatus: data.hosting_status,
289
293
  id: data.id,
290
294
  offerName: data.offer_name,
291
295
  projectId: data.project_id,
292
296
  protected: data.protected,
293
297
  region: data.region,
294
- status: data.status,
298
+ status: data.status ? data.status : void 0,
295
299
  updatedAt: unmarshalDate(data.updated_at)
296
300
  };
297
301
  };
@@ -190,16 +190,20 @@ export interface HostingSummary {
190
190
  createdAt?: Date;
191
191
  /** Date on which the Web Hosting plan was last updated. */
192
192
  updatedAt?: Date;
193
- /** Status of the Web Hosting plan. */
194
- status: HostingSummaryStatus;
193
+ /** @deprecated Status of the Web Hosting plan. */
194
+ status?: HostingSummaryStatus;
195
195
  /** Main domain associated with the Web Hosting plan. */
196
196
  domain: string;
197
197
  /** Whether the hosting is protected or not. */
198
198
  protected: boolean;
199
- /** DNS status of the Web Hosting plan. */
200
- dnsStatus: DnsRecordsStatus;
199
+ /** @deprecated DNS status of the Web Hosting plan. */
200
+ dnsStatus?: DnsRecordsStatus;
201
201
  /** Name of the active offer for the Web Hosting plan. */
202
202
  offerName: string;
203
+ /** Status of the Web Hosting plan. */
204
+ hostingStatus: HostingStatus;
205
+ /** Main domain status of the Web Hosting plan. */
206
+ domainStatus: DomainStatus;
203
207
  /** Region where the Web Hosting plan is hosted. */
204
208
  region: ScwRegion;
205
209
  }
@@ -478,6 +482,8 @@ export interface DnsRecords {
478
482
  nameServers: Nameserver[];
479
483
  /** Status of the records. */
480
484
  status: DnsRecordsStatus;
485
+ /** Records dns auto configuration settings. */
486
+ dnsConfig: DomainDnsAction[];
481
487
  }
482
488
  export interface Domain {
483
489
  /** Name of the domain. */
@@ -569,14 +575,16 @@ export interface Hosting {
569
575
  platform?: Platform;
570
576
  /** List of tags associated with the Web Hosting plan. */
571
577
  tags: string[];
572
- /** DNS status of the Web Hosting plan. */
573
- dnsStatus: DnsRecordsStatus;
578
+ /** @deprecated DNS status of the Web Hosting plan. */
579
+ dnsStatus?: DnsRecordsStatus;
574
580
  /** Current IPv4 address of the hosting. */
575
581
  ipv4: string;
576
582
  /** Whether the hosting is protected or not. */
577
583
  protected: boolean;
578
584
  /** Details of the hosting user. */
579
585
  user?: HostingUser;
586
+ /** Main domain status of the Web Hosting plan. */
587
+ domainStatus: DomainStatus;
580
588
  /** Region where the Web Hosting plan is hosted. */
581
589
  region: ScwRegion;
582
590
  }
@@ -28,10 +28,10 @@ const assertValidSettings = (obj) => {
28
28
  if (obj.defaultZone && !stringValidation.isZone(obj.defaultZone)) {
29
29
  throw new Error(`Invalid default zone format '${obj.defaultZone}'`);
30
30
  }
31
- if (!stringValidation.isURL(obj.apiURL)) {
31
+ if (obj.apiURL && !stringValidation.isURL(obj.apiURL)) {
32
32
  throw new Error(`Invalid URL ${obj.apiURL}`);
33
33
  }
34
- if (obj.apiURL.endsWith("/")) {
34
+ if (obj.apiURL?.endsWith("/")) {
35
35
  throw new Error(
36
36
  `Invalid URL ${obj.apiURL}: it should not have a trailing slash`
37
37
  );
@@ -1,11 +1,11 @@
1
1
  import type { NetworkInterceptors, RequestInterceptor, ResponseInterceptor } from '../internal/interceptors/types';
2
- import type { ProfileDefaultValues } from './client-ini-profile.js';
2
+ import type { Profile } from './client-ini-profile.js';
3
3
  /**
4
4
  * Holds default values of settings.
5
5
  *
6
6
  * @public
7
7
  */
8
- export type DefaultValues = ProfileDefaultValues & {
8
+ export type DefaultValues = Profile & {
9
9
  /**
10
10
  * The default number of results when requesting a paginated resource.
11
11
  */
@@ -26,10 +26,10 @@ const assertValidSettings = (obj) => {
26
26
  if (obj.defaultZone && !isZone(obj.defaultZone)) {
27
27
  throw new Error(`Invalid default zone format '${obj.defaultZone}'`);
28
28
  }
29
- if (!isURL(obj.apiURL)) {
29
+ if (obj.apiURL && !isURL(obj.apiURL)) {
30
30
  throw new Error(`Invalid URL ${obj.apiURL}`);
31
31
  }
32
- if (obj.apiURL.endsWith("/")) {
32
+ if (obj.apiURL?.endsWith("/")) {
33
33
  throw new Error(
34
34
  `Invalid URL ${obj.apiURL}: it should not have a trailing slash`
35
35
  );
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const version = "v2.64.0";
3
+ const version = "v2.66.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.64.0";
2
- export declare const userAgent = "scaleway-sdk-js/v2.64.0";
1
+ export declare const version = "v2.66.0";
2
+ export declare const userAgent = "scaleway-sdk-js/v2.66.0";
@@ -1,4 +1,4 @@
1
- const version = "v2.64.0";
1
+ const version = "v2.66.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.65.0",
3
+ "version": "2.67.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": "48a1b50eb2502554d625991b0b4c6d051ac5c6ef"
42
+ "gitHead": "dfaaaf081c7ebd7475f2bdb08c91a796179a0038"
43
43
  }