@scaleway/sdk 1.22.0 → 1.23.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.
|
@@ -521,7 +521,7 @@ class RegistrarAPI extends API$1 {
|
|
|
521
521
|
return _this4.client.fetch({
|
|
522
522
|
method: 'GET',
|
|
523
523
|
path: `/domain/v2beta1/contacts`,
|
|
524
|
-
urlParams: urlParams(['domain', request.domain], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? _this4.client.settings.defaultPageSize], ['project_id', request.projectId])
|
|
524
|
+
urlParams: urlParams(['domain', request.domain], ['email_status', request.emailStatus ?? 'email_status_unknown'], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? _this4.client.settings.defaultPageSize], ['project_id', request.projectId], ['role', request.role ?? 'unknown_role'])
|
|
525
525
|
}, unmarshalListContactsResponse);
|
|
526
526
|
};
|
|
527
527
|
})();
|
|
@@ -12,7 +12,7 @@ const jsonContentHeaders = {
|
|
|
12
12
|
/** Instance API. */
|
|
13
13
|
class API extends API$1 {
|
|
14
14
|
/** Lists the available zones of the API. */
|
|
15
|
-
static LOCALITIES = ['fr-par-1', 'fr-par-2', 'fr-par-3', 'nl-ams-1', 'nl-ams-2', 'nl-ams-3', 'pl-waw-1', 'pl-waw-2'];
|
|
15
|
+
static LOCALITIES = ['fr-par-1', 'fr-par-2', 'fr-par-3', 'nl-ams-1', 'nl-ams-2', 'nl-ams-3', 'pl-waw-1', 'pl-waw-2', 'pl-waw-3'];
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Get availability. Get availability for all Instance types.
|
|
@@ -269,7 +269,9 @@ const unmarshalPrivateNetworkDHCPConfig = data => {
|
|
|
269
269
|
if (!isJSONObject(data)) {
|
|
270
270
|
throw new TypeError(`Unmarshalling the type 'PrivateNetworkDHCPConfig' failed as data isn't a dictionary.`);
|
|
271
271
|
}
|
|
272
|
-
return {
|
|
272
|
+
return {
|
|
273
|
+
ipId: data.ip_id
|
|
274
|
+
};
|
|
273
275
|
};
|
|
274
276
|
const unmarshalPrivateNetworkIpamConfig = data => {
|
|
275
277
|
if (!isJSONObject(data)) {
|
|
@@ -561,7 +563,9 @@ const marshalHealthCheck = (request, defaults) => ({
|
|
|
561
563
|
value: request.httpsConfig ? marshalHealthCheckHttpsConfig(request.httpsConfig) : undefined
|
|
562
564
|
}])
|
|
563
565
|
});
|
|
564
|
-
const marshalPrivateNetworkDHCPConfig = (request, defaults) => ({
|
|
566
|
+
const marshalPrivateNetworkDHCPConfig = (request, defaults) => ({
|
|
567
|
+
ip_id: request.ipId
|
|
568
|
+
});
|
|
565
569
|
const marshalPrivateNetworkIpamConfig = (request, defaults) => ({});
|
|
566
570
|
const marshalPrivateNetworkStaticConfig = (request, defaults) => ({
|
|
567
571
|
ip_address: request.ipAddress
|
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.22.0';
|
|
501
501
|
const userAgent = `scaleway-sdk-js/${version}`;
|
|
502
502
|
|
|
503
503
|
const isBrowser = () => typeof window !== 'undefined' && typeof window.document !== 'undefined';
|
|
@@ -6786,7 +6786,7 @@ class RegistrarAPI extends API$s {
|
|
|
6786
6786
|
pageOfListContacts = (request = {}) => this.client.fetch({
|
|
6787
6787
|
method: 'GET',
|
|
6788
6788
|
path: `/domain/v2beta1/contacts`,
|
|
6789
|
-
urlParams: urlParams(['domain', request.domain], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId])
|
|
6789
|
+
urlParams: urlParams(['domain', request.domain], ['email_status', request.emailStatus ?? 'email_status_unknown'], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId], ['role', request.role ?? 'unknown_role'])
|
|
6790
6790
|
}, unmarshalListContactsResponse);
|
|
6791
6791
|
|
|
6792
6792
|
/**
|
|
@@ -10908,7 +10908,7 @@ const jsonContentHeaders$f = {
|
|
|
10908
10908
|
/** Instance API. */
|
|
10909
10909
|
let API$h = class API extends API$s {
|
|
10910
10910
|
/** Lists the available zones of the API. */
|
|
10911
|
-
static LOCALITIES = ['fr-par-1', 'fr-par-2', 'fr-par-3', 'nl-ams-1', 'nl-ams-2', 'nl-ams-3', 'pl-waw-1', 'pl-waw-2'];
|
|
10911
|
+
static LOCALITIES = ['fr-par-1', 'fr-par-2', 'fr-par-3', 'nl-ams-1', 'nl-ams-2', 'nl-ams-3', 'pl-waw-1', 'pl-waw-2', 'pl-waw-3'];
|
|
10912
10912
|
|
|
10913
10913
|
/**
|
|
10914
10914
|
* Get availability. Get availability for all Instance types.
|
|
@@ -14641,7 +14641,9 @@ const unmarshalPrivateNetworkDHCPConfig = data => {
|
|
|
14641
14641
|
if (!isJSONObject(data)) {
|
|
14642
14642
|
throw new TypeError(`Unmarshalling the type 'PrivateNetworkDHCPConfig' failed as data isn't a dictionary.`);
|
|
14643
14643
|
}
|
|
14644
|
-
return {
|
|
14644
|
+
return {
|
|
14645
|
+
ipId: data.ip_id
|
|
14646
|
+
};
|
|
14645
14647
|
};
|
|
14646
14648
|
const unmarshalPrivateNetworkIpamConfig = data => {
|
|
14647
14649
|
if (!isJSONObject(data)) {
|
|
@@ -14933,7 +14935,9 @@ const marshalHealthCheck = (request, defaults) => ({
|
|
|
14933
14935
|
value: request.httpsConfig ? marshalHealthCheckHttpsConfig(request.httpsConfig) : undefined
|
|
14934
14936
|
}])
|
|
14935
14937
|
});
|
|
14936
|
-
const marshalPrivateNetworkDHCPConfig = (request, defaults) => ({
|
|
14938
|
+
const marshalPrivateNetworkDHCPConfig = (request, defaults) => ({
|
|
14939
|
+
ip_id: request.ipId
|
|
14940
|
+
});
|
|
14937
14941
|
const marshalPrivateNetworkIpamConfig = (request, defaults) => ({});
|
|
14938
14942
|
const marshalPrivateNetworkStaticConfig = (request, defaults) => ({
|
|
14939
14943
|
ip_address: request.ipAddress
|
package/dist/index.d.ts
CHANGED
|
@@ -4927,6 +4927,7 @@ type DomainRegistrationStatusTransferStatus = 'status_unknown' | 'pending' | 'wa
|
|
|
4927
4927
|
type DomainStatus$2 = 'status_unknown' | 'active' | 'creating' | 'create_error' | 'renewing' | 'renew_error' | 'xfering' | 'xfer_error' | 'expired' | 'expiring' | 'updating' | 'checking' | 'locked' | 'deleting';
|
|
4928
4928
|
type HostStatus = 'unknown_status' | 'active' | 'updating' | 'deleting';
|
|
4929
4929
|
type LanguageCode = 'unknown_language_code' | 'en_US' | 'fr_FR' | 'de_DE';
|
|
4930
|
+
type ListContactsRequestRole = 'unknown_role' | 'owner' | 'administrative' | 'technical';
|
|
4930
4931
|
type ListDNSZoneRecordsRequestOrderBy = 'name_asc' | 'name_desc';
|
|
4931
4932
|
type ListDNSZonesRequestOrderBy = 'domain_asc' | 'domain_desc' | 'subdomain_asc' | 'subdomain_desc';
|
|
4932
4933
|
type ListDomainsRequestOrderBy$1 = 'domain_asc' | 'domain_desc';
|
|
@@ -5812,6 +5813,8 @@ type RegistrarApiListContactsRequest = {
|
|
|
5812
5813
|
domain?: string;
|
|
5813
5814
|
projectId?: string;
|
|
5814
5815
|
organizationId?: string;
|
|
5816
|
+
role?: ListContactsRequestRole;
|
|
5817
|
+
emailStatus?: ContactEmailStatus;
|
|
5815
5818
|
};
|
|
5816
5819
|
type RegistrarApiGetContactRequest = {
|
|
5817
5820
|
contactId: string;
|
|
@@ -6546,6 +6549,7 @@ type index_gen$i_ImportRawDNSZoneRequestBindSource = ImportRawDNSZoneRequestBind
|
|
|
6546
6549
|
type index_gen$i_ImportRawDNSZoneRequestTsigKey = ImportRawDNSZoneRequestTsigKey;
|
|
6547
6550
|
type index_gen$i_ImportRawDNSZoneResponse = ImportRawDNSZoneResponse;
|
|
6548
6551
|
type index_gen$i_LanguageCode = LanguageCode;
|
|
6552
|
+
type index_gen$i_ListContactsRequestRole = ListContactsRequestRole;
|
|
6549
6553
|
type index_gen$i_ListContactsResponse = ListContactsResponse;
|
|
6550
6554
|
type index_gen$i_ListDNSZoneNameserversRequest = ListDNSZoneNameserversRequest;
|
|
6551
6555
|
type index_gen$i_ListDNSZoneNameserversResponse = ListDNSZoneNameserversResponse;
|
|
@@ -6707,6 +6711,7 @@ declare namespace index_gen$i {
|
|
|
6707
6711
|
index_gen$i_ImportRawDNSZoneRequestTsigKey as ImportRawDNSZoneRequestTsigKey,
|
|
6708
6712
|
index_gen$i_ImportRawDNSZoneResponse as ImportRawDNSZoneResponse,
|
|
6709
6713
|
index_gen$i_LanguageCode as LanguageCode,
|
|
6714
|
+
index_gen$i_ListContactsRequestRole as ListContactsRequestRole,
|
|
6710
6715
|
index_gen$i_ListContactsResponse as ListContactsResponse,
|
|
6711
6716
|
index_gen$i_ListDNSZoneNameserversRequest as ListDNSZoneNameserversRequest,
|
|
6712
6717
|
index_gen$i_ListDNSZoneNameserversResponse as ListDNSZoneNameserversResponse,
|
|
@@ -17062,25 +17067,25 @@ interface PrivateNetwork$3 {
|
|
|
17062
17067
|
/** Load Balancer object which is attached to the Private Network. */
|
|
17063
17068
|
lb?: Lb;
|
|
17064
17069
|
/**
|
|
17065
|
-
* Object containing an array of a local IP address for the Load
|
|
17066
|
-
* this Private Network.
|
|
17070
|
+
* @deprecated Object containing an array of a local IP address for the Load
|
|
17071
|
+
* Balancer on this Private Network.
|
|
17067
17072
|
*
|
|
17068
|
-
*
|
|
17069
|
-
*
|
|
17073
|
+
* One-of ('config'): at most one of 'staticConfig', 'dhcpConfig',
|
|
17074
|
+
* 'ipamConfig' could be set.
|
|
17070
17075
|
*/
|
|
17071
17076
|
staticConfig?: PrivateNetworkStaticConfig;
|
|
17072
17077
|
/**
|
|
17073
|
-
*
|
|
17078
|
+
* Object containing DHCP-assigned IP addresses.
|
|
17074
17079
|
*
|
|
17075
17080
|
* One-of ('config'): at most one of 'staticConfig', 'dhcpConfig',
|
|
17076
17081
|
* 'ipamConfig' could be set.
|
|
17077
17082
|
*/
|
|
17078
17083
|
dhcpConfig?: PrivateNetworkDHCPConfig;
|
|
17079
17084
|
/**
|
|
17080
|
-
* For internal use only.
|
|
17085
|
+
* @deprecated For internal use only.
|
|
17081
17086
|
*
|
|
17082
|
-
*
|
|
17083
|
-
*
|
|
17087
|
+
* One-of ('config'): at most one of 'staticConfig', 'dhcpConfig',
|
|
17088
|
+
* 'ipamConfig' could be set.
|
|
17084
17089
|
*/
|
|
17085
17090
|
ipamConfig?: PrivateNetworkIpamConfig;
|
|
17086
17091
|
/** Private Network ID. */
|
|
@@ -17093,13 +17098,17 @@ interface PrivateNetwork$3 {
|
|
|
17093
17098
|
updatedAt?: Date;
|
|
17094
17099
|
}
|
|
17095
17100
|
interface PrivateNetworkDHCPConfig {
|
|
17101
|
+
ipId: string;
|
|
17096
17102
|
}
|
|
17097
17103
|
interface PrivateNetworkIpamConfig {
|
|
17098
17104
|
}
|
|
17099
17105
|
/** Private network. static config. */
|
|
17100
17106
|
interface PrivateNetworkStaticConfig {
|
|
17101
|
-
/**
|
|
17102
|
-
|
|
17107
|
+
/**
|
|
17108
|
+
* @deprecated Array of a local IP address for the Load Balancer on this
|
|
17109
|
+
* Private Network.
|
|
17110
|
+
*/
|
|
17111
|
+
ipAddress?: string[];
|
|
17103
17112
|
}
|
|
17104
17113
|
/** Route. */
|
|
17105
17114
|
interface Route {
|
|
@@ -18204,11 +18213,11 @@ type AttachPrivateNetworkRequest = {
|
|
|
18204
18213
|
/** Private Network ID. */
|
|
18205
18214
|
privateNetworkId: string;
|
|
18206
18215
|
/**
|
|
18207
|
-
* Object containing an array of a local IP address for the Load
|
|
18208
|
-
* this Private Network.
|
|
18216
|
+
* @deprecated Object containing an array of a local IP address for the Load
|
|
18217
|
+
* Balancer on this Private Network.
|
|
18209
18218
|
*
|
|
18210
|
-
*
|
|
18211
|
-
*
|
|
18219
|
+
* One-of ('config'): at most one of 'staticConfig', 'dhcpConfig',
|
|
18220
|
+
* 'ipamConfig' could be set.
|
|
18212
18221
|
*/
|
|
18213
18222
|
staticConfig?: PrivateNetworkStaticConfig;
|
|
18214
18223
|
/**
|
|
@@ -18219,10 +18228,10 @@ type AttachPrivateNetworkRequest = {
|
|
|
18219
18228
|
*/
|
|
18220
18229
|
dhcpConfig?: PrivateNetworkDHCPConfig;
|
|
18221
18230
|
/**
|
|
18222
|
-
* For internal use only.
|
|
18231
|
+
* @deprecated For internal use only.
|
|
18223
18232
|
*
|
|
18224
|
-
*
|
|
18225
|
-
*
|
|
18233
|
+
* One-of ('config'): at most one of 'staticConfig', 'dhcpConfig',
|
|
18234
|
+
* 'ipamConfig' could be set.
|
|
18226
18235
|
*/
|
|
18227
18236
|
ipamConfig?: PrivateNetworkIpamConfig;
|
|
18228
18237
|
};
|
|
@@ -19117,11 +19126,11 @@ type ZonedApiAttachPrivateNetworkRequest = {
|
|
|
19117
19126
|
/** Private Network ID. */
|
|
19118
19127
|
privateNetworkId: string;
|
|
19119
19128
|
/**
|
|
19120
|
-
* Object containing an array of a local IP address for the Load
|
|
19121
|
-
* this Private Network.
|
|
19129
|
+
* @deprecated Object containing an array of a local IP address for the Load
|
|
19130
|
+
* Balancer on this Private Network.
|
|
19122
19131
|
*
|
|
19123
|
-
*
|
|
19124
|
-
*
|
|
19132
|
+
* One-of ('config'): at most one of 'staticConfig', 'dhcpConfig',
|
|
19133
|
+
* 'ipamConfig' could be set.
|
|
19125
19134
|
*/
|
|
19126
19135
|
staticConfig?: PrivateNetworkStaticConfig;
|
|
19127
19136
|
/**
|
|
@@ -19132,10 +19141,10 @@ type ZonedApiAttachPrivateNetworkRequest = {
|
|
|
19132
19141
|
*/
|
|
19133
19142
|
dhcpConfig?: PrivateNetworkDHCPConfig;
|
|
19134
19143
|
/**
|
|
19135
|
-
* For internal use only.
|
|
19144
|
+
* @deprecated For internal use only.
|
|
19136
19145
|
*
|
|
19137
|
-
*
|
|
19138
|
-
*
|
|
19146
|
+
* One-of ('config'): at most one of 'staticConfig', 'dhcpConfig',
|
|
19147
|
+
* 'ipamConfig' could be set.
|
|
19139
19148
|
*/
|
|
19140
19149
|
ipamConfig?: PrivateNetworkIpamConfig;
|
|
19141
19150
|
};
|
package/dist/scw/constants.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.23.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Scaleway SDK.",
|
|
6
6
|
"keywords": [
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"bundledDependencies": [
|
|
36
36
|
"@scaleway/random-name"
|
|
37
37
|
],
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "a21da9b7b7cc1919caa208589e77f0bb340cc8f8"
|
|
39
39
|
}
|