@scaleway/sdk 1.30.0 → 1.31.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/v2/marshalling.gen.js +1 -1
- package/dist/api/account/v3/marshalling.gen.js +1 -1
- package/dist/api/applesilicon/v1alpha1/marshalling.gen.js +1 -1
- package/dist/api/cockpit/v1beta1/marshalling.gen.js +7 -3
- package/dist/api/container/v1beta1/marshalling.gen.js +1 -1
- package/dist/api/function/v1beta1/marshalling.gen.js +1 -1
- package/dist/api/iam/v1alpha1/marshalling.gen.js +1 -1
- package/dist/api/instance/v1/api.gen.js +2 -2
- package/dist/api/instance/v1/marshalling.gen.js +1 -1
- package/dist/api/iot/v1/marshalling.gen.js +1 -1
- package/dist/api/k8s/v1/marshalling.gen.js +1 -1
- package/dist/api/lb/v1/marshalling.gen.js +1 -1
- package/dist/api/mnq/v1alpha1/marshalling.gen.js +1 -1
- package/dist/api/rdb/v1/marshalling.gen.js +1 -1
- package/dist/api/redis/v1/marshalling.gen.js +1 -1
- package/dist/api/registry/v1/marshalling.gen.js +1 -1
- package/dist/api/vpc/v1/marshalling.gen.js +1 -1
- package/dist/api/vpc/v2/marshalling.gen.js +1 -1
- package/dist/api/vpcgw/v1/marshalling.gen.js +1 -1
- package/dist/api/webhosting/v1alpha1/marshalling.gen.js +1 -0
- package/dist/index.cjs +10 -5
- package/dist/index.d.ts +44 -9
- package/dist/scw/constants.js +1 -1
- package/node_modules/@scaleway/random-name/CHANGELOG.md +11 -13
- package/node_modules/@scaleway/random-name/package.json +7 -7
- package/package.json +3 -3
- /package/dist/node_modules/.pnpm/{@scaleway_random-name@4.0.1 → @scaleway_random-name@4.0.2}/node_modules/@scaleway/random-name/dist/index.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.
|
|
1
|
+
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.2/node_modules/@scaleway/random-name/dist/index.js';
|
|
2
2
|
import { isJSONObject } from '../../../helpers/json.js';
|
|
3
3
|
import { unmarshalDate, unmarshalArrayOfObject } from '../../../helpers/marshalling.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.
|
|
1
|
+
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.2/node_modules/@scaleway/random-name/dist/index.js';
|
|
2
2
|
import { isJSONObject } from '../../../helpers/json.js';
|
|
3
3
|
import { unmarshalDate, unmarshalArrayOfObject } from '../../../helpers/marshalling.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.
|
|
1
|
+
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.2/node_modules/@scaleway/random-name/dist/index.js';
|
|
2
2
|
import { isJSONObject } from '../../../helpers/json.js';
|
|
3
3
|
import { unmarshalDate, unmarshalArrayOfObject } from '../../../helpers/marshalling.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.
|
|
1
|
+
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.2/node_modules/@scaleway/random-name/dist/index.js';
|
|
2
2
|
import { isJSONObject } from '../../../helpers/json.js';
|
|
3
3
|
import { unmarshalTimeSeries } from '../../../scw/custom-marshalling.js';
|
|
4
4
|
import { unmarshalDate, unmarshalArrayOfObject, resolveOneOf } from '../../../helpers/marshalling.js';
|
|
@@ -20,11 +20,13 @@ const unmarshalTokenScopes = data => {
|
|
|
20
20
|
return {
|
|
21
21
|
queryLogs: data.query_logs,
|
|
22
22
|
queryMetrics: data.query_metrics,
|
|
23
|
+
queryTraces: data.query_traces,
|
|
23
24
|
setupAlerts: data.setup_alerts,
|
|
24
25
|
setupLogsRules: data.setup_logs_rules,
|
|
25
26
|
setupMetricsRules: data.setup_metrics_rules,
|
|
26
27
|
writeLogs: data.write_logs,
|
|
27
|
-
writeMetrics: data.write_metrics
|
|
28
|
+
writeMetrics: data.write_metrics,
|
|
29
|
+
writeTraces: data.write_traces
|
|
28
30
|
};
|
|
29
31
|
};
|
|
30
32
|
const unmarshalCockpitEndpoints = data => {
|
|
@@ -163,11 +165,13 @@ const marshalContactPoint = (request, defaults) => ({
|
|
|
163
165
|
const marshalTokenScopes = (request, defaults) => ({
|
|
164
166
|
query_logs: request.queryLogs,
|
|
165
167
|
query_metrics: request.queryMetrics,
|
|
168
|
+
query_traces: request.queryTraces,
|
|
166
169
|
setup_alerts: request.setupAlerts,
|
|
167
170
|
setup_logs_rules: request.setupLogsRules,
|
|
168
171
|
setup_metrics_rules: request.setupMetricsRules,
|
|
169
172
|
write_logs: request.writeLogs,
|
|
170
|
-
write_metrics: request.writeMetrics
|
|
173
|
+
write_metrics: request.writeMetrics,
|
|
174
|
+
write_traces: request.writeTraces
|
|
171
175
|
});
|
|
172
176
|
const marshalActivateCockpitRequest = (request, defaults) => ({
|
|
173
177
|
project_id: request.projectId ?? defaults.defaultProjectId
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.
|
|
1
|
+
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.2/node_modules/@scaleway/random-name/dist/index.js';
|
|
2
2
|
import { isJSONObject } from '../../../helpers/json.js';
|
|
3
3
|
import { unmarshalArrayOfObject, unmarshalDate, resolveOneOf } from '../../../helpers/marshalling.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.
|
|
1
|
+
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.2/node_modules/@scaleway/random-name/dist/index.js';
|
|
2
2
|
import { isJSONObject } from '../../../helpers/json.js';
|
|
3
3
|
import { unmarshalArrayOfObject, unmarshalDate, resolveOneOf } from '../../../helpers/marshalling.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.
|
|
1
|
+
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.2/node_modules/@scaleway/random-name/dist/index.js';
|
|
2
2
|
import { isJSONObject } from '../../../helpers/json.js';
|
|
3
3
|
import { unmarshalDate, unmarshalArrayOfObject, resolveOneOf } from '../../../helpers/marshalling.js';
|
|
4
4
|
|
|
@@ -83,7 +83,7 @@ class API extends API$1 {
|
|
|
83
83
|
return _this4.client.fetch({
|
|
84
84
|
method: 'GET',
|
|
85
85
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? _this4.client.settings.defaultZone)}/servers`,
|
|
86
|
-
urlParams: urlParams(['commercial_type', request.commercialType], ['name', request.name], ['order', request.order], ['organization', request.organization], ['page', request.page], ['per_page', request.perPage ?? _this4.client.settings.defaultPageSize], ['private_ip', request.privateIp], ['private_network', request.privateNetwork], ['private_networks', request.privateNetworks && request.privateNetworks.length > 0 ? request.privateNetworks.join(',') : undefined], ['project', request.project], ['state', request.state], ['tags', request.tags && request.tags.length > 0 ? request.tags.join(',') : undefined], ['without_ip', request.withoutIp])
|
|
86
|
+
urlParams: urlParams(['commercial_type', request.commercialType], ['name', request.name], ['order', request.order], ['organization', request.organization], ['page', request.page], ['per_page', request.perPage ?? _this4.client.settings.defaultPageSize], ['private_ip', request.privateIp], ['private_network', request.privateNetwork], ['private_networks', request.privateNetworks && request.privateNetworks.length > 0 ? request.privateNetworks.join(',') : undefined], ['private_nic_mac_address', request.privateNicMacAddress], ['project', request.project], ['state', request.state], ['tags', request.tags && request.tags.length > 0 ? request.tags.join(',') : undefined], ['without_ip', request.withoutIp])
|
|
87
87
|
}, unmarshalListServersResponse);
|
|
88
88
|
};
|
|
89
89
|
})();
|
|
@@ -763,7 +763,7 @@ class API extends API$1 {
|
|
|
763
763
|
return _this20.client.fetch({
|
|
764
764
|
method: 'GET',
|
|
765
765
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? _this20.client.settings.defaultZone)}/ips`,
|
|
766
|
-
urlParams: urlParams(['name', request.name], ['organization', request.organization], ['page', request.page], ['per_page', request.perPage ?? _this20.client.settings.defaultPageSize], ['project', request.project], ['tags', request.tags && request.tags.length > 0 ? request.tags.join(',') : undefined])
|
|
766
|
+
urlParams: urlParams(['name', request.name], ['organization', request.organization], ['page', request.page], ['per_page', request.perPage ?? _this20.client.settings.defaultPageSize], ['project', request.project], ['tags', request.tags && request.tags.length > 0 ? request.tags.join(',') : undefined], ['type', request.type])
|
|
767
767
|
}, unmarshalListIpsResponse);
|
|
768
768
|
};
|
|
769
769
|
})();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.
|
|
1
|
+
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.2/node_modules/@scaleway/random-name/dist/index.js';
|
|
2
2
|
import { isJSONObject } from '../../../helpers/json.js';
|
|
3
3
|
import { unmarshalDate, unmarshalMapOfObject, unmarshalArrayOfObject, resolveOneOf } from '../../../helpers/marshalling.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.
|
|
1
|
+
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.2/node_modules/@scaleway/random-name/dist/index.js';
|
|
2
2
|
import { isJSONObject } from '../../../helpers/json.js';
|
|
3
3
|
import { unmarshalTimeSeries } from '../../../scw/custom-marshalling.js';
|
|
4
4
|
import { unmarshalDate, unmarshalArrayOfObject, resolveOneOf } from '../../../helpers/marshalling.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.
|
|
1
|
+
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.2/node_modules/@scaleway/random-name/dist/index.js';
|
|
2
2
|
import { isJSONObject } from '../../../helpers/json.js';
|
|
3
3
|
import { unmarshalDate, unmarshalArrayOfObject, resolveOneOf } from '../../../helpers/marshalling.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.
|
|
1
|
+
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.2/node_modules/@scaleway/random-name/dist/index.js';
|
|
2
2
|
import { isJSONObject } from '../../../helpers/json.js';
|
|
3
3
|
import { unmarshalDate, unmarshalArrayOfObject, resolveOneOf } from '../../../helpers/marshalling.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.
|
|
1
|
+
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.2/node_modules/@scaleway/random-name/dist/index.js';
|
|
2
2
|
import { isJSONObject } from '../../../helpers/json.js';
|
|
3
3
|
import { unmarshalDate, unmarshalArrayOfObject } from '../../../helpers/marshalling.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.
|
|
1
|
+
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.2/node_modules/@scaleway/random-name/dist/index.js';
|
|
2
2
|
import { isJSONObject } from '../../../helpers/json.js';
|
|
3
3
|
import { unmarshalTimeSeries } from '../../../scw/custom-marshalling.js';
|
|
4
4
|
import { unmarshalArrayOfObject, unmarshalDate, resolveOneOf } from '../../../helpers/marshalling.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.
|
|
1
|
+
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.2/node_modules/@scaleway/random-name/dist/index.js';
|
|
2
2
|
import { isJSONObject } from '../../../helpers/json.js';
|
|
3
3
|
import { unmarshalTimeSeries } from '../../../scw/custom-marshalling.js';
|
|
4
4
|
import { unmarshalArrayOfObject, unmarshalDate, resolveOneOf } from '../../../helpers/marshalling.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.
|
|
1
|
+
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.2/node_modules/@scaleway/random-name/dist/index.js';
|
|
2
2
|
import { isJSONObject } from '../../../helpers/json.js';
|
|
3
3
|
import { unmarshalDate, unmarshalArrayOfObject, resolveOneOf } from '../../../helpers/marshalling.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.
|
|
1
|
+
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.2/node_modules/@scaleway/random-name/dist/index.js';
|
|
2
2
|
import { isJSONObject } from '../../../helpers/json.js';
|
|
3
3
|
import { unmarshalDate, unmarshalArrayOfObject } from '../../../helpers/marshalling.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.
|
|
1
|
+
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.2/node_modules/@scaleway/random-name/dist/index.js';
|
|
2
2
|
import { isJSONObject } from '../../../helpers/json.js';
|
|
3
3
|
import { unmarshalDate, unmarshalArrayOfObject, resolveOneOf } from '../../../helpers/marshalling.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.
|
|
1
|
+
import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.2/node_modules/@scaleway/random-name/dist/index.js';
|
|
2
2
|
import { isJSONObject } from '../../../helpers/json.js';
|
|
3
3
|
import { unmarshalDate, unmarshalArrayOfObject, resolveOneOf } from '../../../helpers/marshalling.js';
|
|
4
4
|
|
|
@@ -31,6 +31,7 @@ const unmarshalOfferProduct = data => {
|
|
|
31
31
|
emailAccountsQuota: data.email_accounts_quota,
|
|
32
32
|
emailStorageQuota: data.email_storage_quota,
|
|
33
33
|
hostingStorageQuota: data.hosting_storage_quota,
|
|
34
|
+
maxAddonDomains: data.max_addon_domains,
|
|
34
35
|
name: data.name,
|
|
35
36
|
option: data.option,
|
|
36
37
|
ram: data.ram,
|
package/dist/index.cjs
CHANGED
|
@@ -497,7 +497,7 @@ const assertValidSettings = obj => {
|
|
|
497
497
|
}
|
|
498
498
|
};
|
|
499
499
|
|
|
500
|
-
const version = 'v1.
|
|
500
|
+
const version = 'v1.30.0';
|
|
501
501
|
const userAgent = `scaleway-sdk-js/${version}`;
|
|
502
502
|
|
|
503
503
|
const isBrowser = () => typeof window !== 'undefined' && typeof window.document !== 'undefined';
|
|
@@ -3745,11 +3745,13 @@ const unmarshalTokenScopes = data => {
|
|
|
3745
3745
|
return {
|
|
3746
3746
|
queryLogs: data.query_logs,
|
|
3747
3747
|
queryMetrics: data.query_metrics,
|
|
3748
|
+
queryTraces: data.query_traces,
|
|
3748
3749
|
setupAlerts: data.setup_alerts,
|
|
3749
3750
|
setupLogsRules: data.setup_logs_rules,
|
|
3750
3751
|
setupMetricsRules: data.setup_metrics_rules,
|
|
3751
3752
|
writeLogs: data.write_logs,
|
|
3752
|
-
writeMetrics: data.write_metrics
|
|
3753
|
+
writeMetrics: data.write_metrics,
|
|
3754
|
+
writeTraces: data.write_traces
|
|
3753
3755
|
};
|
|
3754
3756
|
};
|
|
3755
3757
|
const unmarshalCockpitEndpoints = data => {
|
|
@@ -3888,11 +3890,13 @@ const marshalContactPoint = (request, defaults) => ({
|
|
|
3888
3890
|
const marshalTokenScopes = (request, defaults) => ({
|
|
3889
3891
|
query_logs: request.queryLogs,
|
|
3890
3892
|
query_metrics: request.queryMetrics,
|
|
3893
|
+
query_traces: request.queryTraces,
|
|
3891
3894
|
setup_alerts: request.setupAlerts,
|
|
3892
3895
|
setup_logs_rules: request.setupLogsRules,
|
|
3893
3896
|
setup_metrics_rules: request.setupMetricsRules,
|
|
3894
3897
|
write_logs: request.writeLogs,
|
|
3895
|
-
write_metrics: request.writeMetrics
|
|
3898
|
+
write_metrics: request.writeMetrics,
|
|
3899
|
+
write_traces: request.writeTraces
|
|
3896
3900
|
});
|
|
3897
3901
|
const marshalActivateCockpitRequest = (request, defaults) => ({
|
|
3898
3902
|
project_id: request.projectId ?? defaults.defaultProjectId
|
|
@@ -10979,7 +10983,7 @@ let API$h = class API extends API$s {
|
|
|
10979
10983
|
pageOfListServers = (request = {}) => this.client.fetch({
|
|
10980
10984
|
method: 'GET',
|
|
10981
10985
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers`,
|
|
10982
|
-
urlParams: urlParams(['commercial_type', request.commercialType], ['name', request.name], ['order', request.order], ['organization', request.organization], ['page', request.page], ['per_page', request.perPage ?? this.client.settings.defaultPageSize], ['private_ip', request.privateIp], ['private_network', request.privateNetwork], ['private_networks', request.privateNetworks && request.privateNetworks.length > 0 ? request.privateNetworks.join(',') : undefined], ['project', request.project], ['state', request.state], ['tags', request.tags && request.tags.length > 0 ? request.tags.join(',') : undefined], ['without_ip', request.withoutIp])
|
|
10986
|
+
urlParams: urlParams(['commercial_type', request.commercialType], ['name', request.name], ['order', request.order], ['organization', request.organization], ['page', request.page], ['per_page', request.perPage ?? this.client.settings.defaultPageSize], ['private_ip', request.privateIp], ['private_network', request.privateNetwork], ['private_networks', request.privateNetworks && request.privateNetworks.length > 0 ? request.privateNetworks.join(',') : undefined], ['private_nic_mac_address', request.privateNicMacAddress], ['project', request.project], ['state', request.state], ['tags', request.tags && request.tags.length > 0 ? request.tags.join(',') : undefined], ['without_ip', request.withoutIp])
|
|
10983
10987
|
}, unmarshalListServersResponse);
|
|
10984
10988
|
|
|
10985
10989
|
/**
|
|
@@ -11531,7 +11535,7 @@ let API$h = class API extends API$s {
|
|
|
11531
11535
|
pageOfListIps = (request = {}) => this.client.fetch({
|
|
11532
11536
|
method: 'GET',
|
|
11533
11537
|
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/ips`,
|
|
11534
|
-
urlParams: urlParams(['name', request.name], ['organization', request.organization], ['page', request.page], ['per_page', request.perPage ?? this.client.settings.defaultPageSize], ['project', request.project], ['tags', request.tags && request.tags.length > 0 ? request.tags.join(',') : undefined])
|
|
11538
|
+
urlParams: urlParams(['name', request.name], ['organization', request.organization], ['page', request.page], ['per_page', request.perPage ?? this.client.settings.defaultPageSize], ['project', request.project], ['tags', request.tags && request.tags.length > 0 ? request.tags.join(',') : undefined], ['type', request.type])
|
|
11535
11539
|
}, unmarshalListIpsResponse$1);
|
|
11536
11540
|
|
|
11537
11541
|
/**
|
|
@@ -23071,6 +23075,7 @@ const unmarshalOfferProduct = data => {
|
|
|
23071
23075
|
emailAccountsQuota: data.email_accounts_quota,
|
|
23072
23076
|
emailStorageQuota: data.email_storage_quota,
|
|
23073
23077
|
hostingStorageQuota: data.hosting_storage_quota,
|
|
23078
|
+
maxAddonDomains: data.max_addon_domains,
|
|
23074
23079
|
name: data.name,
|
|
23075
23080
|
option: data.option,
|
|
23076
23081
|
ram: data.ram,
|
package/dist/index.d.ts
CHANGED
|
@@ -3126,10 +3126,14 @@ interface TokenScopes {
|
|
|
3126
3126
|
queryLogs: boolean;
|
|
3127
3127
|
/** Permission to write logs. */
|
|
3128
3128
|
writeLogs: boolean;
|
|
3129
|
-
/** Permission to
|
|
3129
|
+
/** Permission to set up logs rules. */
|
|
3130
3130
|
setupLogsRules: boolean;
|
|
3131
|
-
/** Permission to
|
|
3131
|
+
/** Permission to set up alerts. */
|
|
3132
3132
|
setupAlerts: boolean;
|
|
3133
|
+
/** Permission to fetch traces. */
|
|
3134
|
+
queryTraces: boolean;
|
|
3135
|
+
/** Permission to write traces. */
|
|
3136
|
+
writeTraces: boolean;
|
|
3133
3137
|
}
|
|
3134
3138
|
type ActivateCockpitRequest = {
|
|
3135
3139
|
/** ID of the Project the Cockpit belongs to. */
|
|
@@ -9443,9 +9447,9 @@ type SnapshotState = 'available' | 'snapshotting' | 'error' | 'invalid_data' | '
|
|
|
9443
9447
|
type SnapshotVolumeType = 'unknown_volume_type' | 'l_ssd' | 'b_ssd' | 'unified';
|
|
9444
9448
|
type TaskStatus = 'pending' | 'started' | 'success' | 'failure' | 'retry';
|
|
9445
9449
|
type VolumeServerState = 'available' | 'snapshotting' | 'error' | 'fetching' | 'resizing' | 'saving' | 'hotsyncing';
|
|
9446
|
-
type VolumeServerVolumeType = 'l_ssd' | 'b_ssd';
|
|
9450
|
+
type VolumeServerVolumeType = 'l_ssd' | 'b_ssd' | 'sbs_volume' | 'scratch';
|
|
9447
9451
|
type VolumeState = 'available' | 'snapshotting' | 'error' | 'fetching' | 'resizing' | 'saving' | 'hotsyncing';
|
|
9448
|
-
type VolumeVolumeType = 'l_ssd' | 'b_ssd' | 'unified' | 'scratch';
|
|
9452
|
+
type VolumeVolumeType = 'l_ssd' | 'b_ssd' | 'unified' | 'scratch' | 'sbs_volume';
|
|
9449
9453
|
/** Bootscript. */
|
|
9450
9454
|
interface Bootscript {
|
|
9451
9455
|
/** Bootscript arguments. */
|
|
@@ -10301,6 +10305,8 @@ type ListServersRequest = {
|
|
|
10301
10305
|
* them).
|
|
10302
10306
|
*/
|
|
10303
10307
|
privateNetworks?: string[];
|
|
10308
|
+
/** List Instances associated with the given private NIC MAC address. */
|
|
10309
|
+
privateNicMacAddress?: string;
|
|
10304
10310
|
};
|
|
10305
10311
|
type DeleteServerRequest = {
|
|
10306
10312
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
@@ -10844,6 +10850,11 @@ type ListIpsRequest = {
|
|
|
10844
10850
|
perPage?: number;
|
|
10845
10851
|
/** A positive integer to choose the page to return. */
|
|
10846
10852
|
page?: number;
|
|
10853
|
+
/**
|
|
10854
|
+
* Filter on the IP Mobility IP type (whose value should be either 'nat',
|
|
10855
|
+
* 'routed_ipv4' or 'routed_ipv6').
|
|
10856
|
+
*/
|
|
10857
|
+
type?: string;
|
|
10847
10858
|
};
|
|
10848
10859
|
type CreateIpRequest$1 = {
|
|
10849
10860
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
@@ -26447,12 +26458,16 @@ type CreateGatewayNetworkRequest = {
|
|
|
26447
26458
|
gatewayId: string;
|
|
26448
26459
|
/** Private Network to connect. */
|
|
26449
26460
|
privateNetworkId: string;
|
|
26450
|
-
/**
|
|
26461
|
+
/**
|
|
26462
|
+
* Defines whether to enable masquerade (dynamic NAT) on the GatewayNetwork.
|
|
26463
|
+
* Note: this setting is ignored when passing `ipam_config`.
|
|
26464
|
+
*/
|
|
26451
26465
|
enableMasquerade: boolean;
|
|
26452
26466
|
/**
|
|
26453
26467
|
* Defines whether to enable DHCP on this Private Network. Defaults to `true`
|
|
26454
26468
|
* if either `dhcp_id` or `dhcp` are present. If set to `true`, either
|
|
26455
|
-
* `dhcp_id` or `dhcp` must be present.
|
|
26469
|
+
* `dhcp_id` or `dhcp` must be present. Note: this setting is ignored when
|
|
26470
|
+
* passing `ipam_config`.
|
|
26456
26471
|
*/
|
|
26457
26472
|
enableDhcp?: boolean;
|
|
26458
26473
|
/**
|
|
@@ -26493,9 +26508,16 @@ type UpdateGatewayNetworkRequest = {
|
|
|
26493
26508
|
zone?: Zone;
|
|
26494
26509
|
/** ID of the GatewayNetwork to update. */
|
|
26495
26510
|
gatewayNetworkId: string;
|
|
26496
|
-
/**
|
|
26511
|
+
/**
|
|
26512
|
+
* Defines whether to enable masquerade (dynamic NAT) on the GatewayNetwork.
|
|
26513
|
+
* Note: this setting is ignored when passing `ipam_config`.
|
|
26514
|
+
*/
|
|
26497
26515
|
enableMasquerade?: boolean;
|
|
26498
|
-
/**
|
|
26516
|
+
/**
|
|
26517
|
+
* Defines whether to enable DHCP on this Private Network. Defaults to `true`
|
|
26518
|
+
* if `dhcp_id` is present. If set to `true`, `dhcp_id` must be present. Note:
|
|
26519
|
+
* this setting is ignored when passing `ipam_config`.
|
|
26520
|
+
*/
|
|
26499
26521
|
enableDhcp?: boolean;
|
|
26500
26522
|
/**
|
|
26501
26523
|
* ID of the new DHCP configuration object to use with this GatewayNetwork.
|
|
@@ -26512,7 +26534,11 @@ type UpdateGatewayNetworkRequest = {
|
|
|
26512
26534
|
*/
|
|
26513
26535
|
address?: string;
|
|
26514
26536
|
/**
|
|
26515
|
-
*
|
|
26537
|
+
* Auto-configure the GatewayNetwork using Scaleway's IPAM (IP address
|
|
26538
|
+
* management service). Note: all or none of the GatewayNetworks for a single
|
|
26539
|
+
* gateway can use the IPAM. DHCP and IPAM configurations cannot be mixed.
|
|
26540
|
+
* Some products may require that the Public Gateway uses the IPAM, to ensure
|
|
26541
|
+
* correct functionality.
|
|
26516
26542
|
*
|
|
26517
26543
|
* One-of ('ipConfig'): at most one of 'dhcpId', 'address', 'ipamConfig' could
|
|
26518
26544
|
* be set.
|
|
@@ -27465,13 +27491,22 @@ interface OfferProduct {
|
|
|
27465
27491
|
name: string;
|
|
27466
27492
|
/** Product option. */
|
|
27467
27493
|
option: boolean;
|
|
27494
|
+
/** Limit number of email accounts. */
|
|
27468
27495
|
emailAccountsQuota: number;
|
|
27496
|
+
/** Limit quantity of email storage in gigabytes. */
|
|
27469
27497
|
emailStorageQuota: number;
|
|
27498
|
+
/** Limit number of databases. */
|
|
27470
27499
|
databasesQuota: number;
|
|
27500
|
+
/** Limit quantity of hosting storage in gigabytes. */
|
|
27471
27501
|
hostingStorageQuota: number;
|
|
27502
|
+
/** Whether or not support is included. */
|
|
27472
27503
|
supportIncluded: boolean;
|
|
27504
|
+
/** Limit number of virtual CPU. */
|
|
27473
27505
|
vCpu: number;
|
|
27506
|
+
/** Limit quantity of memory in gigabytes. */
|
|
27474
27507
|
ram: number;
|
|
27508
|
+
/** Limit number of add-on domains. */
|
|
27509
|
+
maxAddonDomains: number;
|
|
27475
27510
|
}
|
|
27476
27511
|
type CreateHostingRequest = {
|
|
27477
27512
|
/**
|
package/dist/scw/constants.js
CHANGED
|
@@ -1,39 +1,37 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 4.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1380](https://github.com/scaleway/scaleway-lib/pull/1380) [`c0e0d51`](https://github.com/scaleway/scaleway-lib/commit/c0e0d5104680149f9b38ae509b17d14a66c4d733) Thanks [@QuiiBz](https://github.com/QuiiBz)! - Add `exports` field & fix package lint errors
|
|
8
|
+
|
|
3
9
|
All notable changes to this project will be documented in this file.
|
|
4
10
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
11
|
|
|
6
12
|
## 4.0.1 (2023-01-13)
|
|
7
13
|
|
|
8
|
-
|
|
9
14
|
### :package: Chore
|
|
10
15
|
|
|
11
|
-
|
|
12
|
-
|
|
16
|
+
- **release:** publish ([9d6de7b](https://github.com/scaleway/scaleway-lib/commit/9d6de7b63065f53774cb64b0e5a46a868dc9933a))
|
|
13
17
|
|
|
14
18
|
### :bug: Bug Fixes
|
|
15
19
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
20
|
+
- harden ts code ([#1158](https://github.com/scaleway/scaleway-lib/issues/1158)) ([7e2130e](https://github.com/scaleway/scaleway-lib/commit/7e2130ea4c2a079c69ec49b27444daa8f6076d03))
|
|
19
21
|
|
|
20
22
|
## 4.0.0 (2023-01-06)
|
|
21
23
|
|
|
22
|
-
|
|
23
24
|
### ⚠ BREAKING CHANGES
|
|
24
25
|
|
|
25
|
-
|
|
26
|
+
- packages are ESM only
|
|
26
27
|
|
|
27
28
|
### :package: Chore
|
|
28
29
|
|
|
29
|
-
|
|
30
|
-
|
|
30
|
+
- **release:** publish ([20c9d4f](https://github.com/scaleway/scaleway-lib/commit/20c9d4fb39822245252bf362bc7a8d26127e511d))
|
|
31
31
|
|
|
32
32
|
### :gear: Features
|
|
33
33
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
- publish packages as ESM only ([#1145](https://github.com/scaleway/scaleway-lib/issues/1145)) ([4c25097](https://github.com/scaleway/scaleway-lib/commit/4c25097254a5ba7f0a5dbb6fdf5d6578a75f777a))
|
|
37
35
|
|
|
38
36
|
## 3.0.3 (2022-12-29)
|
|
39
37
|
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/random-name",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.2",
|
|
4
4
|
"description": "A small utility to generate a random name",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=14.x"
|
|
8
8
|
},
|
|
9
9
|
"sideEffects": false,
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
"exports": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"default": "./dist/index.js"
|
|
13
|
+
},
|
|
13
14
|
"publishConfig": {
|
|
14
15
|
"access": "public"
|
|
15
16
|
},
|
|
@@ -18,6 +19,5 @@
|
|
|
18
19
|
"url": "https://github.com/scaleway/scaleway-lib",
|
|
19
20
|
"directory": "packages/random-name"
|
|
20
21
|
},
|
|
21
|
-
"license": "MIT"
|
|
22
|
-
|
|
23
|
-
}
|
|
22
|
+
"license": "MIT"
|
|
23
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.31.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Scaleway SDK.",
|
|
6
6
|
"keywords": [
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
},
|
|
31
31
|
"type": "module",
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@scaleway/random-name": "^4.0.
|
|
33
|
+
"@scaleway/random-name": "^4.0.2"
|
|
34
34
|
},
|
|
35
35
|
"bundledDependencies": [
|
|
36
36
|
"@scaleway/random-name"
|
|
37
37
|
],
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "b7c2a612ee260de6c3424d22c5e9f9004d987934"
|
|
39
39
|
}
|