@scaleway/sdk 2.68.0 → 2.70.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 (96) hide show
  1. package/dist/api/account/v3/api.gen.cjs +23 -0
  2. package/dist/api/account/v3/api.gen.d.ts +11 -1
  3. package/dist/api/account/v3/api.gen.js +24 -1
  4. package/dist/api/account/v3/index.gen.d.ts +1 -1
  5. package/dist/api/account/v3/marshalling.gen.cjs +171 -0
  6. package/dist/api/account/v3/marshalling.gen.d.ts +3 -1
  7. package/dist/api/account/v3/marshalling.gen.js +173 -2
  8. package/dist/api/account/v3/types.gen.d.ts +93 -0
  9. package/dist/api/applesilicon/v1alpha1/types.gen.d.ts +3 -2
  10. package/dist/api/audit_trail/v1alpha1/api.gen.cjs +1 -0
  11. package/dist/api/audit_trail/v1alpha1/api.gen.js +1 -0
  12. package/dist/api/audit_trail/v1alpha1/marshalling.gen.cjs +5 -0
  13. package/dist/api/audit_trail/v1alpha1/marshalling.gen.js +5 -0
  14. package/dist/api/audit_trail/v1alpha1/types.gen.d.ts +50 -14
  15. package/dist/api/audit_trail/v1alpha1/validation-rules.gen.cjs +3 -0
  16. package/dist/api/audit_trail/v1alpha1/validation-rules.gen.d.ts +3 -0
  17. package/dist/api/audit_trail/v1alpha1/validation-rules.gen.js +3 -0
  18. package/dist/api/billing/v2beta1/api.gen.cjs +9 -2
  19. package/dist/api/billing/v2beta1/api.gen.d.ts +9 -2
  20. package/dist/api/billing/v2beta1/api.gen.js +9 -2
  21. package/dist/api/billing/v2beta1/types.gen.d.ts +1 -1
  22. package/dist/api/cockpit/v1/marshalling.gen.cjs +4 -4
  23. package/dist/api/cockpit/v1/marshalling.gen.js +4 -4
  24. package/dist/api/cockpit/v1/types.gen.d.ts +3 -3
  25. package/dist/api/edge_services/v1beta1/api.gen.cjs +1 -1
  26. package/dist/api/edge_services/v1beta1/api.gen.js +1 -1
  27. package/dist/api/edge_services/v1beta1/marshalling.gen.cjs +1 -0
  28. package/dist/api/edge_services/v1beta1/marshalling.gen.d.ts +2 -1
  29. package/dist/api/edge_services/v1beta1/marshalling.gen.js +1 -0
  30. package/dist/api/edge_services/v1beta1/types.gen.d.ts +104 -104
  31. package/dist/api/iam/v1alpha1/api.gen.cjs +8 -0
  32. package/dist/api/iam/v1alpha1/api.gen.d.ts +2 -1
  33. package/dist/api/iam/v1alpha1/api.gen.js +9 -1
  34. package/dist/api/iam/v1alpha1/index.gen.d.ts +1 -1
  35. package/dist/api/iam/v1alpha1/marshalling.gen.cjs +46 -0
  36. package/dist/api/iam/v1alpha1/marshalling.gen.d.ts +2 -1
  37. package/dist/api/iam/v1alpha1/marshalling.gen.js +46 -0
  38. package/dist/api/iam/v1alpha1/types.gen.d.ts +26 -0
  39. package/dist/api/iam/v1alpha1/validation-rules.gen.cjs +23 -12
  40. package/dist/api/iam/v1alpha1/validation-rules.gen.d.ts +22 -11
  41. package/dist/api/iam/v1alpha1/validation-rules.gen.js +23 -12
  42. package/dist/api/inference/index.gen.cjs +4 -2
  43. package/dist/api/inference/index.gen.d.ts +1 -0
  44. package/dist/api/inference/index.gen.js +4 -2
  45. package/dist/api/inference/v1/api.gen.cjs +274 -0
  46. package/dist/api/inference/v1/api.gen.d.ts +140 -0
  47. package/dist/api/inference/v1/api.gen.js +274 -0
  48. package/dist/api/inference/v1/content.gen.cjs +13 -0
  49. package/dist/api/inference/v1/content.gen.d.ts +5 -0
  50. package/dist/api/inference/v1/content.gen.js +13 -0
  51. package/dist/api/inference/v1/index.gen.cjs +9 -0
  52. package/dist/api/inference/v1/index.gen.d.ts +4 -0
  53. package/dist/api/inference/v1/index.gen.js +9 -0
  54. package/dist/api/inference/v1/marshalling.gen.cjs +260 -0
  55. package/dist/api/inference/v1/marshalling.gen.d.ts +14 -0
  56. package/dist/api/inference/v1/marshalling.gen.js +260 -0
  57. package/dist/api/inference/v1/types.gen.d.ts +395 -0
  58. package/dist/api/inference/v1/validation-rules.gen.cjs +65 -0
  59. package/dist/api/inference/v1/validation-rules.gen.d.ts +57 -0
  60. package/dist/api/inference/v1/validation-rules.gen.js +65 -0
  61. package/dist/api/instance/v1/index.gen.d.ts +1 -1
  62. package/dist/api/instance/v1/marshalling.gen.cjs +13 -0
  63. package/dist/api/instance/v1/marshalling.gen.js +13 -0
  64. package/dist/api/instance/v1/types.gen.d.ts +10 -0
  65. package/dist/api/mongodb/v1alpha1/types.gen.d.ts +1 -1
  66. package/dist/api/secret/v1beta1/api.gen.cjs +2 -34
  67. package/dist/api/secret/v1beta1/api.gen.d.ts +3 -19
  68. package/dist/api/secret/v1beta1/api.gen.js +2 -34
  69. package/dist/api/secret/v1beta1/index.gen.d.ts +1 -1
  70. package/dist/api/secret/v1beta1/types.gen.d.ts +3 -19
  71. package/dist/api/tem/v1alpha1/api.gen.cjs +93 -0
  72. package/dist/api/tem/v1alpha1/api.gen.d.ts +44 -1
  73. package/dist/api/tem/v1alpha1/api.gen.js +94 -1
  74. package/dist/api/tem/v1alpha1/index.gen.d.ts +1 -1
  75. package/dist/api/tem/v1alpha1/marshalling.gen.cjs +114 -0
  76. package/dist/api/tem/v1alpha1/marshalling.gen.d.ts +7 -1
  77. package/dist/api/tem/v1alpha1/marshalling.gen.js +114 -0
  78. package/dist/api/tem/v1alpha1/types.gen.d.ts +162 -6
  79. package/dist/api/tem/v1alpha1/validation-rules.gen.cjs +10 -0
  80. package/dist/api/tem/v1alpha1/validation-rules.gen.d.ts +9 -0
  81. package/dist/api/tem/v1alpha1/validation-rules.gen.js +10 -0
  82. package/dist/api/vpcgw/v1/api.gen.cjs +7 -0
  83. package/dist/api/vpcgw/v1/api.gen.d.ts +7 -0
  84. package/dist/api/vpcgw/v1/api.gen.js +7 -0
  85. package/dist/api/vpcgw/v1/types.gen.d.ts +1 -0
  86. package/dist/api/webhosting/v1/index.gen.d.ts +1 -1
  87. package/dist/api/webhosting/v1/marshalling.gen.cjs +23 -1
  88. package/dist/api/webhosting/v1/marshalling.gen.js +23 -1
  89. package/dist/api/webhosting/v1/types.gen.d.ts +51 -12
  90. package/dist/scw/constants.cjs +1 -1
  91. package/dist/scw/constants.d.ts +2 -2
  92. package/dist/scw/constants.js +1 -1
  93. package/dist/scw/errors/standard/quotas-exceeded-error.cjs +1 -1
  94. package/dist/scw/errors/standard/quotas-exceeded-error.d.ts +4 -4
  95. package/dist/scw/errors/standard/quotas-exceeded-error.js +1 -1
  96. package/package.json +2 -2
@@ -58,6 +58,19 @@ export interface CreateDatabaseRequestUser {
58
58
  username: string;
59
59
  password: string;
60
60
  }
61
+ export interface AutoConfigDomainDns {
62
+ /** Whether or not to synchronize domain nameservers. */
63
+ nameservers: boolean;
64
+ /** Whether or not to synchronize web records. */
65
+ webRecords: boolean;
66
+ /** Whether or not to synchronize mail records. */
67
+ mailRecords: boolean;
68
+ /**
69
+ * Whether or not to synchronize all types of records. Takes priority over the
70
+ * other fields.
71
+ */
72
+ allRecords: boolean;
73
+ }
61
74
  export interface CreateHostingRequestDomainConfiguration {
62
75
  updateNameservers: boolean;
63
76
  updateWebRecord: boolean;
@@ -461,16 +474,30 @@ export type DnsApiSyncDomainDnsRecordsRequest = {
461
474
  region?: ScwRegion;
462
475
  /** Domain for which the DNS records will be synchronized. */
463
476
  domain: string;
464
- /** Whether or not to synchronize the web records. */
465
- updateWebRecords: boolean;
466
- /** Whether or not to synchronize the mail records. */
467
- updateMailRecords: boolean;
468
- /** Whether or not to synchronize all types of records. This one has priority. */
469
- updateAllRecords: boolean;
470
- /** Whether or not to synchronize domain nameservers. */
471
- updateNameservers: boolean;
477
+ /**
478
+ * @deprecated Whether or not to synchronize the web records (deprecated, use
479
+ * auto_config_domain_dns).
480
+ */
481
+ updateWebRecords?: boolean;
482
+ /**
483
+ * @deprecated Whether or not to synchronize the mail records (deprecated, use
484
+ * auto_config_domain_dns).
485
+ */
486
+ updateMailRecords?: boolean;
487
+ /**
488
+ * @deprecated Whether or not to synchronize all types of records. This one
489
+ * has priority (deprecated, use auto_config_domain_dns).
490
+ */
491
+ updateAllRecords?: boolean;
492
+ /**
493
+ * @deprecated Whether or not to synchronize domain nameservers (deprecated,
494
+ * use auto_config_domain_dns).
495
+ */
496
+ updateNameservers?: boolean;
472
497
  /** Custom records to synchronize. */
473
498
  customRecords?: SyncDomainDnsRecordsRequestRecord[];
499
+ /** Whether or not to synchronize each types of records. */
500
+ autoConfigDomainDns?: AutoConfigDomainDns;
474
501
  };
475
502
  export interface DnsRecords {
476
503
  /** List of DNS records. */
@@ -491,8 +518,13 @@ export interface Domain {
491
518
  owner: DomainZoneOwner;
492
519
  /** A list of actions that can be performed on the domain. */
493
520
  availableActions: DomainAction[];
494
- /** A list of DNS-related actions that can be auto configured for the domain. */
495
- availableDnsActions: DomainDnsAction[];
521
+ /**
522
+ * @deprecated A list of DNS-related actions that can be auto configured for
523
+ * the domain (deprecated, use auto_config_domain_dns instead).
524
+ */
525
+ availableDnsActions?: DomainDnsAction[];
526
+ /** Whether or not to synchronize each type of record. */
527
+ autoConfigDomainDns?: AutoConfigDomainDns;
496
528
  }
497
529
  export type FtpAccountApiChangeFtpAccountPasswordRequest = {
498
530
  /**
@@ -609,8 +641,9 @@ export type HostingApiCreateHostingRequest = {
609
641
  /** Default language for the control panel interface. */
610
642
  language?: StdLanguageCode;
611
643
  /**
612
- * Indicates whether to update hosting domain name servers and DNS records for
613
- * domains managed by Scaleway Elements.
644
+ * @deprecated Indicates whether to update hosting domain name servers and DNS
645
+ * records for domains managed by Scaleway Elements (deprecated, use
646
+ * auto_config_domain_dns instead).
614
647
  */
615
648
  domainConfiguration?: CreateHostingRequestDomainConfiguration;
616
649
  /**
@@ -618,6 +651,12 @@ export type HostingApiCreateHostingRequest = {
618
651
  * hosting info.
619
652
  */
620
653
  skipWelcomeEmail?: boolean;
654
+ /**
655
+ * Indicates whether to update hosting domain name servers and DNS records for
656
+ * domains managed by Scaleway Elements (deprecated, use auto_update_* fields
657
+ * instead).
658
+ */
659
+ autoConfigDomainDns?: AutoConfigDomainDns;
621
660
  };
622
661
  export type HostingApiCreateSessionRequest = {
623
662
  /**
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const version = "v2.67.0";
3
+ const version = "v2.69.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.67.0";
2
- export declare const userAgent = "scaleway-sdk-js/v2.67.0";
1
+ export declare const version = "v2.69.0";
2
+ export declare const userAgent = "scaleway-sdk-js/v2.69.0";
@@ -1,4 +1,4 @@
1
- const version = "v2.67.0";
1
+ const version = "v2.69.0";
2
2
  const userAgent = `scaleway-sdk-js/${version}`;
3
3
  export {
4
4
  userAgent,
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const json = require("../../../helpers/json.cjs");
4
4
  const scwError = require("../scw-error.cjs");
5
5
  const buildMessage = (list) => `quota(s) exceeded: ${list.map((details) => {
6
- const message = `${details.resource} has reached its quota (${details.current}/${details.quota})`;
6
+ const message = `Quotas reached: You have reached the maximum number of ${details.resource} authorized by your Organization. Access the quotas page from your Organization dashboard to manage quotas.`;
7
7
  return details.scope ? `${message} for ${details.scope.kind} '${details.scope.id}'` : message;
8
8
  }).join("; ")}`;
9
9
  const buildScope = (detail) => {
@@ -5,21 +5,21 @@ import { ScalewayError } from '../scw-error.js';
5
5
  *
6
6
  * @public
7
7
  */
8
- export type QuotasExceededErrorScope = {
8
+ export interface QuotasExceededErrorScope {
9
9
  kind: 'organization' | 'project';
10
10
  id: string;
11
- };
11
+ }
12
12
  /**
13
13
  * Details of an {@link QuotasExceededError} error.
14
14
  *
15
15
  * @public
16
16
  */
17
- export type QuotasExceededErrorDetails = {
17
+ export interface QuotasExceededErrorDetails {
18
18
  readonly resource: string;
19
19
  readonly quota: number;
20
20
  readonly current: number;
21
21
  readonly scope?: QuotasExceededErrorScope;
22
- };
22
+ }
23
23
  /**
24
24
  * QuotasExceeded error happens when one or many resource exceed quotas during the creation of a resource.
25
25
  *
@@ -1,7 +1,7 @@
1
1
  import { isJSONObject } from "../../../helpers/json.js";
2
2
  import { ScalewayError } from "../scw-error.js";
3
3
  const buildMessage = (list) => `quota(s) exceeded: ${list.map((details) => {
4
- const message = `${details.resource} has reached its quota (${details.current}/${details.quota})`;
4
+ const message = `Quotas reached: You have reached the maximum number of ${details.resource} authorized by your Organization. Access the quotas page from your Organization dashboard to manage quotas.`;
5
5
  return details.scope ? `${message} for ${details.scope.kind} '${details.scope.id}'` : message;
6
6
  }).join("; ")}`;
7
7
  const buildScope = (detail) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk",
3
- "version": "2.68.0",
3
+ "version": "2.70.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": "f772f3f49c9d00453fb7bf7207d49198658963a9"
42
+ "gitHead": "5edf3a36158f71863fe38a4858dee0728c16c00c"
43
43
  }