@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.
- package/dist/api/account/v3/api.gen.cjs +23 -0
- package/dist/api/account/v3/api.gen.d.ts +11 -1
- package/dist/api/account/v3/api.gen.js +24 -1
- package/dist/api/account/v3/index.gen.d.ts +1 -1
- package/dist/api/account/v3/marshalling.gen.cjs +171 -0
- package/dist/api/account/v3/marshalling.gen.d.ts +3 -1
- package/dist/api/account/v3/marshalling.gen.js +173 -2
- package/dist/api/account/v3/types.gen.d.ts +93 -0
- package/dist/api/applesilicon/v1alpha1/types.gen.d.ts +3 -2
- package/dist/api/audit_trail/v1alpha1/api.gen.cjs +1 -0
- package/dist/api/audit_trail/v1alpha1/api.gen.js +1 -0
- package/dist/api/audit_trail/v1alpha1/marshalling.gen.cjs +5 -0
- package/dist/api/audit_trail/v1alpha1/marshalling.gen.js +5 -0
- package/dist/api/audit_trail/v1alpha1/types.gen.d.ts +50 -14
- package/dist/api/audit_trail/v1alpha1/validation-rules.gen.cjs +3 -0
- package/dist/api/audit_trail/v1alpha1/validation-rules.gen.d.ts +3 -0
- package/dist/api/audit_trail/v1alpha1/validation-rules.gen.js +3 -0
- package/dist/api/billing/v2beta1/api.gen.cjs +9 -2
- package/dist/api/billing/v2beta1/api.gen.d.ts +9 -2
- package/dist/api/billing/v2beta1/api.gen.js +9 -2
- package/dist/api/billing/v2beta1/types.gen.d.ts +1 -1
- package/dist/api/cockpit/v1/marshalling.gen.cjs +4 -4
- package/dist/api/cockpit/v1/marshalling.gen.js +4 -4
- package/dist/api/cockpit/v1/types.gen.d.ts +3 -3
- package/dist/api/edge_services/v1beta1/api.gen.cjs +1 -1
- package/dist/api/edge_services/v1beta1/api.gen.js +1 -1
- package/dist/api/edge_services/v1beta1/marshalling.gen.cjs +1 -0
- package/dist/api/edge_services/v1beta1/marshalling.gen.d.ts +2 -1
- package/dist/api/edge_services/v1beta1/marshalling.gen.js +1 -0
- package/dist/api/edge_services/v1beta1/types.gen.d.ts +104 -104
- package/dist/api/iam/v1alpha1/api.gen.cjs +8 -0
- package/dist/api/iam/v1alpha1/api.gen.d.ts +2 -1
- package/dist/api/iam/v1alpha1/api.gen.js +9 -1
- package/dist/api/iam/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/iam/v1alpha1/marshalling.gen.cjs +46 -0
- package/dist/api/iam/v1alpha1/marshalling.gen.d.ts +2 -1
- package/dist/api/iam/v1alpha1/marshalling.gen.js +46 -0
- package/dist/api/iam/v1alpha1/types.gen.d.ts +26 -0
- package/dist/api/iam/v1alpha1/validation-rules.gen.cjs +23 -12
- package/dist/api/iam/v1alpha1/validation-rules.gen.d.ts +22 -11
- package/dist/api/iam/v1alpha1/validation-rules.gen.js +23 -12
- package/dist/api/inference/index.gen.cjs +4 -2
- package/dist/api/inference/index.gen.d.ts +1 -0
- package/dist/api/inference/index.gen.js +4 -2
- package/dist/api/inference/v1/api.gen.cjs +274 -0
- package/dist/api/inference/v1/api.gen.d.ts +140 -0
- package/dist/api/inference/v1/api.gen.js +274 -0
- package/dist/api/inference/v1/content.gen.cjs +13 -0
- package/dist/api/inference/v1/content.gen.d.ts +5 -0
- package/dist/api/inference/v1/content.gen.js +13 -0
- package/dist/api/inference/v1/index.gen.cjs +9 -0
- package/dist/api/inference/v1/index.gen.d.ts +4 -0
- package/dist/api/inference/v1/index.gen.js +9 -0
- package/dist/api/inference/v1/marshalling.gen.cjs +260 -0
- package/dist/api/inference/v1/marshalling.gen.d.ts +14 -0
- package/dist/api/inference/v1/marshalling.gen.js +260 -0
- package/dist/api/inference/v1/types.gen.d.ts +395 -0
- package/dist/api/inference/v1/validation-rules.gen.cjs +65 -0
- package/dist/api/inference/v1/validation-rules.gen.d.ts +57 -0
- package/dist/api/inference/v1/validation-rules.gen.js +65 -0
- package/dist/api/instance/v1/index.gen.d.ts +1 -1
- package/dist/api/instance/v1/marshalling.gen.cjs +13 -0
- package/dist/api/instance/v1/marshalling.gen.js +13 -0
- package/dist/api/instance/v1/types.gen.d.ts +10 -0
- package/dist/api/mongodb/v1alpha1/types.gen.d.ts +1 -1
- package/dist/api/secret/v1beta1/api.gen.cjs +2 -34
- package/dist/api/secret/v1beta1/api.gen.d.ts +3 -19
- package/dist/api/secret/v1beta1/api.gen.js +2 -34
- package/dist/api/secret/v1beta1/index.gen.d.ts +1 -1
- package/dist/api/secret/v1beta1/types.gen.d.ts +3 -19
- package/dist/api/tem/v1alpha1/api.gen.cjs +93 -0
- package/dist/api/tem/v1alpha1/api.gen.d.ts +44 -1
- package/dist/api/tem/v1alpha1/api.gen.js +94 -1
- package/dist/api/tem/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/tem/v1alpha1/marshalling.gen.cjs +114 -0
- package/dist/api/tem/v1alpha1/marshalling.gen.d.ts +7 -1
- package/dist/api/tem/v1alpha1/marshalling.gen.js +114 -0
- package/dist/api/tem/v1alpha1/types.gen.d.ts +162 -6
- package/dist/api/tem/v1alpha1/validation-rules.gen.cjs +10 -0
- package/dist/api/tem/v1alpha1/validation-rules.gen.d.ts +9 -0
- package/dist/api/tem/v1alpha1/validation-rules.gen.js +10 -0
- package/dist/api/vpcgw/v1/api.gen.cjs +7 -0
- package/dist/api/vpcgw/v1/api.gen.d.ts +7 -0
- package/dist/api/vpcgw/v1/api.gen.js +7 -0
- package/dist/api/vpcgw/v1/types.gen.d.ts +1 -0
- package/dist/api/webhosting/v1/index.gen.d.ts +1 -1
- package/dist/api/webhosting/v1/marshalling.gen.cjs +23 -1
- package/dist/api/webhosting/v1/marshalling.gen.js +23 -1
- package/dist/api/webhosting/v1/types.gen.d.ts +51 -12
- package/dist/scw/constants.cjs +1 -1
- package/dist/scw/constants.d.ts +2 -2
- package/dist/scw/constants.js +1 -1
- package/dist/scw/errors/standard/quotas-exceeded-error.cjs +1 -1
- package/dist/scw/errors/standard/quotas-exceeded-error.d.ts +4 -4
- package/dist/scw/errors/standard/quotas-exceeded-error.js +1 -1
- 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
|
-
/**
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
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
|
-
/**
|
|
495
|
-
|
|
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
|
|
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
|
/**
|
package/dist/scw/constants.cjs
CHANGED
package/dist/scw/constants.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "v2.
|
|
2
|
-
export declare const userAgent = "scaleway-sdk-js/v2.
|
|
1
|
+
export declare const version = "v2.69.0";
|
|
2
|
+
export declare const userAgent = "scaleway-sdk-js/v2.69.0";
|
package/dist/scw/constants.js
CHANGED
|
@@ -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 =
|
|
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
|
|
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
|
|
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 =
|
|
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.
|
|
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": "
|
|
42
|
+
"gitHead": "5edf3a36158f71863fe38a4858dee0728c16c00c"
|
|
43
43
|
}
|