@scaleway/sdk 1.27.0 → 1.29.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.
@@ -21,7 +21,7 @@ class API extends API$1 {
21
21
  pageOfListDNSZones = request => this.client.fetch({
22
22
  method: 'GET',
23
23
  path: `/domain/v2beta1/dns-zones`,
24
- urlParams: urlParams(['dns_zone', request.dnsZone], ['domain', request.domain], ['order_by', request.orderBy ?? 'domain_asc'], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId])
24
+ urlParams: urlParams(['created_after', request.createdAfter], ['created_before', request.createdBefore], ['dns_zone', request.dnsZone], ['dns_zones', request.dnsZones], ['domain', request.domain], ['order_by', request.orderBy ?? 'domain_asc'], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId], ['updated_after', request.updatedAfter], ['updated_before', request.updatedBefore])
25
25
  }, unmarshalListDNSZonesResponse);
26
26
 
27
27
  /**
@@ -3,7 +3,7 @@ import { API as API$1 } from '../../../scw/api.js';
3
3
  import { validatePathParam, urlParams } from '../../../helpers/marshalling.js';
4
4
  import { enrichForPagination } from '../../../scw/fetch/resource-paginator.js';
5
5
  import { PIN_TRANSIENT_STATUSES, NAME_TRANSIENT_STATUSES } from './content.gen.js';
6
- import { marshalCreateVolumeRequest, unmarshalVolume, unmarshalListVolumesResponse, marshalUpdateVolumeRequest, marshalCreatePinByURLRequest, unmarshalPin, marshalCreatePinByCIDRequest, marshalReplacePinRequest, unmarshalReplacePinResponse, unmarshalListPinsResponse, marshalCreateNameRequest, unmarshalName, unmarshalListNamesResponse, marshalUpdateNameRequest } from './marshalling.gen.js';
6
+ import { marshalCreateVolumeRequest, unmarshalVolume, unmarshalListVolumesResponse, marshalUpdateVolumeRequest, marshalCreatePinByURLRequest, unmarshalPin, marshalCreatePinByCIDRequest, marshalReplacePinRequest, unmarshalReplacePinResponse, unmarshalListPinsResponse, marshalCreateNameRequest, unmarshalName, unmarshalListNamesResponse, marshalUpdateNameRequest, unmarshalExportKeyNameResponse, marshalImportKeyNameRequest } from './marshalling.gen.js';
7
7
 
8
8
  // This file was automatically generated. DO NOT EDIT.
9
9
  // If you have any remark or suggestion do not hesitate to open an issue.
@@ -243,6 +243,16 @@ class API extends API$1 {
243
243
  method: 'PATCH',
244
244
  path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names/${validatePathParam('nameId', request.nameId)}`
245
245
  }, unmarshalName);
246
+ exportKeyName = request => this.client.fetch({
247
+ method: 'GET',
248
+ path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names/export-key/${validatePathParam('nameId', request.nameId)}`
249
+ }, unmarshalExportKeyNameResponse);
250
+ importKeyName = request => this.client.fetch({
251
+ body: JSON.stringify(marshalImportKeyNameRequest(request, this.client.settings)),
252
+ headers: jsonContentHeaders,
253
+ method: 'POST',
254
+ path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names/import-key`
255
+ }, unmarshalName);
246
256
  }
247
257
 
248
258
  export { API };
@@ -79,6 +79,19 @@ const unmarshalVolume = data => {
79
79
  updatedAt: unmarshalDate(data.updated_at)
80
80
  };
81
81
  };
82
+ const unmarshalExportKeyNameResponse = data => {
83
+ if (!isJSONObject(data)) {
84
+ throw new TypeError(`Unmarshalling the type 'ExportKeyNameResponse' failed as data isn't a dictionary.`);
85
+ }
86
+ return {
87
+ createdAt: unmarshalDate(data.created_at),
88
+ nameId: data.name_id,
89
+ privateKey: data.private_key,
90
+ projectId: data.project_id,
91
+ publicKey: data.public_key,
92
+ updatedAt: unmarshalDate(data.updated_at)
93
+ };
94
+ };
82
95
  const unmarshalListNamesResponse = data => {
83
96
  if (!isJSONObject(data)) {
84
97
  throw new TypeError(`Unmarshalling the type 'ListNamesResponse' failed as data isn't a dictionary.`);
@@ -140,6 +153,11 @@ const marshalCreateVolumeRequest = (request, defaults) => ({
140
153
  name: request.name,
141
154
  project_id: request.projectId ?? defaults.defaultProjectId
142
155
  });
156
+ const marshalImportKeyNameRequest = (request, defaults) => ({
157
+ name: request.name,
158
+ private_key: request.privateKey,
159
+ project_id: request.projectId ?? defaults.defaultProjectId
160
+ });
143
161
  const marshalReplacePinRequest = (request, defaults) => ({
144
162
  cid: request.cid,
145
163
  name: request.name,
@@ -157,4 +175,4 @@ const marshalUpdateVolumeRequest = (request, defaults) => ({
157
175
  tags: request.tags
158
176
  });
159
177
 
160
- export { marshalCreateNameRequest, marshalCreatePinByCIDRequest, marshalCreatePinByURLRequest, marshalCreateVolumeRequest, marshalReplacePinRequest, marshalUpdateNameRequest, marshalUpdateVolumeRequest, unmarshalListNamesResponse, unmarshalListPinsResponse, unmarshalListVolumesResponse, unmarshalName, unmarshalPin, unmarshalReplacePinResponse, unmarshalVolume };
178
+ export { marshalCreateNameRequest, marshalCreatePinByCIDRequest, marshalCreatePinByURLRequest, marshalCreateVolumeRequest, marshalImportKeyNameRequest, marshalReplacePinRequest, marshalUpdateNameRequest, marshalUpdateVolumeRequest, unmarshalExportKeyNameResponse, unmarshalListNamesResponse, unmarshalListPinsResponse, unmarshalListVolumesResponse, unmarshalName, unmarshalPin, unmarshalReplacePinResponse, unmarshalVolume };
@@ -227,6 +227,9 @@ const marshalCreateDHCPRequest = (request, defaults) => ({
227
227
  subnet: request.subnet,
228
228
  valid_lifetime: request.validLifetime
229
229
  });
230
+ const marshalIpamConfig = (request, defaults) => ({
231
+ push_default_route: request.pushDefaultRoute
232
+ });
230
233
  const marshalSetDHCPEntriesRequestEntry = (request, defaults) => ({
231
234
  ip_address: request.ipAddress,
232
235
  mac_address: request.macAddress
@@ -256,6 +259,9 @@ const marshalCreateGatewayNetworkRequest = (request, defaults) => ({
256
259
  }, {
257
260
  param: 'address',
258
261
  value: request.address
262
+ }, {
263
+ param: 'ipam_config',
264
+ value: request.ipamConfig ? marshalIpamConfig(request.ipamConfig) : undefined
259
265
  }])
260
266
  });
261
267
  const marshalCreateGatewayRequest = (request, defaults) => ({
@@ -315,6 +321,9 @@ const marshalUpdateGatewayNetworkRequest = (request, defaults) => ({
315
321
  }, {
316
322
  param: 'address',
317
323
  value: request.address
324
+ }, {
325
+ param: 'ipam_config',
326
+ value: request.ipamConfig ? marshalIpamConfig(request.ipamConfig) : undefined
318
327
  }])
319
328
  });
320
329
  const marshalUpdateGatewayRequest = (request, defaults) => ({
package/dist/index.cjs CHANGED
@@ -497,7 +497,7 @@ const assertValidSettings = obj => {
497
497
  }
498
498
  };
499
499
 
500
- const version = 'v1.26.0';
500
+ const version = 'v1.28.0';
501
501
  const userAgent = `scaleway-sdk-js/${version}`;
502
502
 
503
503
  const isBrowser = () => typeof window !== 'undefined' && typeof window.document !== 'undefined';
@@ -6316,7 +6316,7 @@ let API$l = class API extends API$s {
6316
6316
  pageOfListDNSZones = request => this.client.fetch({
6317
6317
  method: 'GET',
6318
6318
  path: `/domain/v2beta1/dns-zones`,
6319
- urlParams: urlParams(['dns_zone', request.dnsZone], ['domain', request.domain], ['order_by', request.orderBy ?? 'domain_asc'], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId])
6319
+ urlParams: urlParams(['created_after', request.createdAfter], ['created_before', request.createdBefore], ['dns_zone', request.dnsZone], ['dns_zones', request.dnsZones], ['domain', request.domain], ['order_by', request.orderBy ?? 'domain_asc'], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId], ['updated_after', request.updatedAfter], ['updated_before', request.updatedBefore])
6320
6320
  }, unmarshalListDNSZonesResponse);
6321
6321
 
6322
6322
  /**
@@ -13165,6 +13165,19 @@ const unmarshalVolume$1 = data => {
13165
13165
  updatedAt: unmarshalDate(data.updated_at)
13166
13166
  };
13167
13167
  };
13168
+ const unmarshalExportKeyNameResponse = data => {
13169
+ if (!isJSONObject(data)) {
13170
+ throw new TypeError(`Unmarshalling the type 'ExportKeyNameResponse' failed as data isn't a dictionary.`);
13171
+ }
13172
+ return {
13173
+ createdAt: unmarshalDate(data.created_at),
13174
+ nameId: data.name_id,
13175
+ privateKey: data.private_key,
13176
+ projectId: data.project_id,
13177
+ publicKey: data.public_key,
13178
+ updatedAt: unmarshalDate(data.updated_at)
13179
+ };
13180
+ };
13168
13181
  const unmarshalListNamesResponse = data => {
13169
13182
  if (!isJSONObject(data)) {
13170
13183
  throw new TypeError(`Unmarshalling the type 'ListNamesResponse' failed as data isn't a dictionary.`);
@@ -13226,6 +13239,11 @@ const marshalCreateVolumeRequest = (request, defaults) => ({
13226
13239
  name: request.name,
13227
13240
  project_id: request.projectId ?? defaults.defaultProjectId
13228
13241
  });
13242
+ const marshalImportKeyNameRequest = (request, defaults) => ({
13243
+ name: request.name,
13244
+ private_key: request.privateKey,
13245
+ project_id: request.projectId ?? defaults.defaultProjectId
13246
+ });
13229
13247
  const marshalReplacePinRequest = (request, defaults) => ({
13230
13248
  cid: request.cid,
13231
13249
  name: request.name,
@@ -13449,6 +13467,16 @@ let API$f = class API extends API$s {
13449
13467
  method: 'PATCH',
13450
13468
  path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names/${validatePathParam('nameId', request.nameId)}`
13451
13469
  }, unmarshalName);
13470
+ exportKeyName = request => this.client.fetch({
13471
+ method: 'GET',
13472
+ path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names/export-key/${validatePathParam('nameId', request.nameId)}`
13473
+ }, unmarshalExportKeyNameResponse);
13474
+ importKeyName = request => this.client.fetch({
13475
+ body: JSON.stringify(marshalImportKeyNameRequest(request, this.client.settings)),
13476
+ headers: jsonContentHeaders$d,
13477
+ method: 'POST',
13478
+ path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names/import-key`
13479
+ }, unmarshalName);
13452
13480
  };
13453
13481
 
13454
13482
  // This file was automatically generated. DO NOT EDIT.
@@ -22211,6 +22239,9 @@ const marshalCreateDHCPRequest = (request, defaults) => ({
22211
22239
  subnet: request.subnet,
22212
22240
  valid_lifetime: request.validLifetime
22213
22241
  });
22242
+ const marshalIpamConfig = (request, defaults) => ({
22243
+ push_default_route: request.pushDefaultRoute
22244
+ });
22214
22245
  const marshalSetDHCPEntriesRequestEntry = (request, defaults) => ({
22215
22246
  ip_address: request.ipAddress,
22216
22247
  mac_address: request.macAddress
@@ -22240,6 +22271,9 @@ const marshalCreateGatewayNetworkRequest = (request, defaults) => ({
22240
22271
  }, {
22241
22272
  param: 'address',
22242
22273
  value: request.address
22274
+ }, {
22275
+ param: 'ipam_config',
22276
+ value: request.ipamConfig ? marshalIpamConfig(request.ipamConfig) : undefined
22243
22277
  }])
22244
22278
  });
22245
22279
  const marshalCreateGatewayRequest = (request, defaults) => ({
@@ -22299,6 +22333,9 @@ const marshalUpdateGatewayNetworkRequest = (request, defaults) => ({
22299
22333
  }, {
22300
22334
  param: 'address',
22301
22335
  value: request.address
22336
+ }, {
22337
+ param: 'ipam_config',
22338
+ value: request.ipamConfig ? marshalIpamConfig(request.ipamConfig) : undefined
22302
22339
  }])
22303
22340
  });
22304
22341
  const marshalUpdateGatewayRequest = (request, defaults) => ({
package/dist/index.d.ts CHANGED
@@ -4618,7 +4618,7 @@ type HostStatus = 'unknown_status' | 'active' | 'updating' | 'deleting';
4618
4618
  type LanguageCode = 'unknown_language_code' | 'en_US' | 'fr_FR' | 'de_DE';
4619
4619
  type ListContactsRequestRole = 'unknown_role' | 'owner' | 'administrative' | 'technical';
4620
4620
  type ListDNSZoneRecordsRequestOrderBy = 'name_asc' | 'name_desc';
4621
- type ListDNSZonesRequestOrderBy = 'domain_asc' | 'domain_desc' | 'subdomain_asc' | 'subdomain_desc';
4621
+ type ListDNSZonesRequestOrderBy = 'domain_asc' | 'domain_desc' | 'subdomain_asc' | 'subdomain_desc' | 'created_at_asc' | 'created_at_desc' | 'updated_at_asc' | 'updated_at_desc';
4622
4622
  type ListDomainsRequestOrderBy$1 = 'domain_asc' | 'domain_desc';
4623
4623
  type ListRenewableDomainsRequestOrderBy = 'domain_asc' | 'domain_desc';
4624
4624
  type ListTasksRequestOrderBy = 'domain_desc' | 'domain_asc' | 'type_asc' | 'type_desc' | 'status_asc' | 'status_desc' | 'updated_at_asc' | 'updated_at_desc';
@@ -5191,8 +5191,18 @@ type ListDNSZonesRequest = {
5191
5191
  pageSize?: number;
5192
5192
  /** Domain on which to filter the returned DNS zones. */
5193
5193
  domain: string;
5194
- /** DNS zone on which to filter the returned DNS zones. */
5195
- dnsZone: string;
5194
+ /** @deprecated DNS zone on which to filter the returned DNS zones. */
5195
+ dnsZone?: string;
5196
+ /** DNS zones on which to filter the returned DNS zones. */
5197
+ dnsZones?: string[];
5198
+ /** Only list DNS zones created after this date. */
5199
+ createdAfter?: Date;
5200
+ /** Only list DNS zones created before this date. */
5201
+ createdBefore?: Date;
5202
+ /** Only list DNS zones updated after this date. */
5203
+ updatedAfter?: Date;
5204
+ /** Only list DNS zones updated before this date. */
5205
+ updatedBefore?: Date;
5196
5206
  };
5197
5207
  type CreateDNSZoneRequest = {
5198
5208
  /** Domain in which to crreate the DNS zone. */
@@ -13449,6 +13459,14 @@ type ListVolumesRequestOrderBy = 'created_at_asc' | 'created_at_desc';
13449
13459
  type NameStatus = 'unknown_status' | 'queued' | 'publishing' | 'failed' | 'published';
13450
13460
  type PinDetails = 'unknown_details' | 'pinning_looking_for_provider' | 'pinning_in_progress' | 'pinning_blocks_fetched' | 'pinning_fetching_url_data' | 'pinned_ok' | 'unpinned_ok' | 'unpinning_in_progress' | 'failed_contains_banned_cid' | 'failed_pinning' | 'failed_pinning_no_provider' | 'failed_pinning_bad_cid_format' | 'failed_pinning_timeout' | 'failed_pinning_too_big_content' | 'failed_pinning_unreachable_url' | 'failed_pinning_bad_url_format' | 'failed_pinning_no_url_content_length' | 'failed_pinning_bad_url_status_code' | 'failed_unpinning' | 'checking_coherence' | 'rescheduled';
13451
13461
  type PinStatus = 'unknown_status' | 'queued' | 'pinning' | 'failed' | 'pinned';
13462
+ interface ExportKeyNameResponse {
13463
+ nameId: string;
13464
+ projectId: string;
13465
+ createdAt?: Date;
13466
+ updatedAt?: Date;
13467
+ publicKey: string;
13468
+ privateKey: string;
13469
+ }
13452
13470
  interface ListNamesResponse {
13453
13471
  names: Name[];
13454
13472
  totalCount: number;
@@ -13677,6 +13695,24 @@ type UpdateNameRequest = {
13677
13695
  tags?: string[];
13678
13696
  cid?: string;
13679
13697
  };
13698
+ type ExportKeyNameRequest = {
13699
+ /**
13700
+ * Region to target. If none is passed will use default region from the
13701
+ * config.
13702
+ */
13703
+ region?: Region;
13704
+ nameId: string;
13705
+ };
13706
+ type ImportKeyNameRequest = {
13707
+ /**
13708
+ * Region to target. If none is passed will use default region from the
13709
+ * config.
13710
+ */
13711
+ region?: Region;
13712
+ projectId?: string;
13713
+ name: string;
13714
+ privateKey: string;
13715
+ };
13680
13716
 
13681
13717
  /** IPFS Pinning service API. */
13682
13718
  declare class API$f extends API$s {
@@ -13808,6 +13844,8 @@ declare class API$f extends API$s {
13808
13844
  [Symbol.asyncIterator]: () => AsyncGenerator<Name[], void, void>;
13809
13845
  };
13810
13846
  updateName: (request: Readonly<UpdateNameRequest>) => Promise<Name>;
13847
+ exportKeyName: (request: Readonly<ExportKeyNameRequest>) => Promise<ExportKeyNameResponse>;
13848
+ importKeyName: (request: Readonly<ImportKeyNameRequest>) => Promise<Name>;
13811
13849
  }
13812
13850
 
13813
13851
  /** Lists transient statutes of the enum {@link NameStatus}. */
@@ -13822,9 +13860,12 @@ type index_gen$d_CreateVolumeRequest = CreateVolumeRequest;
13822
13860
  type index_gen$d_DeleteNameRequest = DeleteNameRequest;
13823
13861
  type index_gen$d_DeletePinRequest = DeletePinRequest;
13824
13862
  type index_gen$d_DeleteVolumeRequest = DeleteVolumeRequest;
13863
+ type index_gen$d_ExportKeyNameRequest = ExportKeyNameRequest;
13864
+ type index_gen$d_ExportKeyNameResponse = ExportKeyNameResponse;
13825
13865
  type index_gen$d_GetNameRequest = GetNameRequest;
13826
13866
  type index_gen$d_GetPinRequest = GetPinRequest;
13827
13867
  type index_gen$d_GetVolumeRequest = GetVolumeRequest;
13868
+ type index_gen$d_ImportKeyNameRequest = ImportKeyNameRequest;
13828
13869
  type index_gen$d_ListNamesRequest = ListNamesRequest;
13829
13870
  type index_gen$d_ListNamesRequestOrderBy = ListNamesRequestOrderBy;
13830
13871
  type index_gen$d_ListNamesResponse = ListNamesResponse;
@@ -13850,7 +13891,7 @@ type index_gen$d_ReplacePinResponse = ReplacePinResponse;
13850
13891
  type index_gen$d_UpdateNameRequest = UpdateNameRequest;
13851
13892
  type index_gen$d_UpdateVolumeRequest = UpdateVolumeRequest;
13852
13893
  declare namespace index_gen$d {
13853
- export { API$f as API, type index_gen$d_CreateNameRequest as CreateNameRequest, type index_gen$d_CreatePinByCIDRequest as CreatePinByCIDRequest, type index_gen$d_CreatePinByURLRequest as CreatePinByURLRequest, type index_gen$d_CreateVolumeRequest as CreateVolumeRequest, type index_gen$d_DeleteNameRequest as DeleteNameRequest, type index_gen$d_DeletePinRequest as DeletePinRequest, type index_gen$d_DeleteVolumeRequest as DeleteVolumeRequest, type index_gen$d_GetNameRequest as GetNameRequest, type index_gen$d_GetPinRequest as GetPinRequest, type index_gen$d_GetVolumeRequest as GetVolumeRequest, type index_gen$d_ListNamesRequest as ListNamesRequest, type index_gen$d_ListNamesRequestOrderBy as ListNamesRequestOrderBy, type index_gen$d_ListNamesResponse as ListNamesResponse, type index_gen$d_ListPinsRequest as ListPinsRequest, type index_gen$d_ListPinsRequestOrderBy as ListPinsRequestOrderBy, type index_gen$d_ListPinsResponse as ListPinsResponse, type index_gen$d_ListVolumesRequest as ListVolumesRequest, type index_gen$d_ListVolumesRequestOrderBy as ListVolumesRequestOrderBy, type index_gen$d_ListVolumesResponse as ListVolumesResponse, index_gen$d_NAME_TRANSIENT_STATUSES as NAME_TRANSIENT_STATUSES, type index_gen$d_Name as Name, type index_gen$d_NameStatus as NameStatus, index_gen$d_PIN_TRANSIENT_STATUSES as PIN_TRANSIENT_STATUSES, type index_gen$d_Pin as Pin, type index_gen$d_PinCID as PinCID, type index_gen$d_PinCIDMeta as PinCIDMeta, type index_gen$d_PinDetails as PinDetails, type index_gen$d_PinInfo as PinInfo, type index_gen$d_PinOptions as PinOptions, type index_gen$d_PinStatus as PinStatus, type index_gen$d_ReplacePinRequest as ReplacePinRequest, type index_gen$d_ReplacePinResponse as ReplacePinResponse, type index_gen$d_UpdateNameRequest as UpdateNameRequest, type index_gen$d_UpdateVolumeRequest as UpdateVolumeRequest, type Volume$1 as Volume };
13894
+ export { API$f as API, type index_gen$d_CreateNameRequest as CreateNameRequest, type index_gen$d_CreatePinByCIDRequest as CreatePinByCIDRequest, type index_gen$d_CreatePinByURLRequest as CreatePinByURLRequest, type index_gen$d_CreateVolumeRequest as CreateVolumeRequest, type index_gen$d_DeleteNameRequest as DeleteNameRequest, type index_gen$d_DeletePinRequest as DeletePinRequest, type index_gen$d_DeleteVolumeRequest as DeleteVolumeRequest, type index_gen$d_ExportKeyNameRequest as ExportKeyNameRequest, type index_gen$d_ExportKeyNameResponse as ExportKeyNameResponse, type index_gen$d_GetNameRequest as GetNameRequest, type index_gen$d_GetPinRequest as GetPinRequest, type index_gen$d_GetVolumeRequest as GetVolumeRequest, type index_gen$d_ImportKeyNameRequest as ImportKeyNameRequest, type index_gen$d_ListNamesRequest as ListNamesRequest, type index_gen$d_ListNamesRequestOrderBy as ListNamesRequestOrderBy, type index_gen$d_ListNamesResponse as ListNamesResponse, type index_gen$d_ListPinsRequest as ListPinsRequest, type index_gen$d_ListPinsRequestOrderBy as ListPinsRequestOrderBy, type index_gen$d_ListPinsResponse as ListPinsResponse, type index_gen$d_ListVolumesRequest as ListVolumesRequest, type index_gen$d_ListVolumesRequestOrderBy as ListVolumesRequestOrderBy, type index_gen$d_ListVolumesResponse as ListVolumesResponse, index_gen$d_NAME_TRANSIENT_STATUSES as NAME_TRANSIENT_STATUSES, type index_gen$d_Name as Name, type index_gen$d_NameStatus as NameStatus, index_gen$d_PIN_TRANSIENT_STATUSES as PIN_TRANSIENT_STATUSES, type index_gen$d_Pin as Pin, type index_gen$d_PinCID as PinCID, type index_gen$d_PinCIDMeta as PinCIDMeta, type index_gen$d_PinDetails as PinDetails, type index_gen$d_PinInfo as PinInfo, type index_gen$d_PinOptions as PinOptions, type index_gen$d_PinStatus as PinStatus, type index_gen$d_ReplacePinRequest as ReplacePinRequest, type index_gen$d_ReplacePinResponse as ReplacePinResponse, type index_gen$d_UpdateNameRequest as UpdateNameRequest, type index_gen$d_UpdateVolumeRequest as UpdateVolumeRequest, type Volume$1 as Volume };
13854
13895
  }
13855
13896
 
13856
13897
  declare namespace index$f {
@@ -24658,7 +24699,7 @@ declare namespace index$4 {
24658
24699
 
24659
24700
  type DomainLastStatusRecordStatus = 'unknown_record_status' | 'valid' | 'invalid' | 'not_found';
24660
24701
  type DomainStatus = 'unknown' | 'checked' | 'unchecked' | 'invalid' | 'locked' | 'revoked' | 'pending';
24661
- type EmailFlag = 'unknown_flag' | 'soft_bounce' | 'hard_bounce' | 'spam' | 'mailbox_full';
24702
+ type EmailFlag = 'unknown_flag' | 'soft_bounce' | 'hard_bounce' | 'spam' | 'mailbox_full' | 'mailbox_not_found' | 'greylisted' | 'send_before_expiration';
24662
24703
  type EmailRcptType = 'unknown_rcpt_type' | 'to' | 'cc' | 'bcc';
24663
24704
  type EmailStatus = 'unknown' | 'new' | 'sending' | 'sent' | 'failed' | 'canceled';
24664
24705
  type ListEmailsRequestOrderBy = 'created_at_desc' | 'created_at_asc' | 'updated_at_desc' | 'updated_at_asc' | 'status_desc' | 'status_asc' | 'mail_from_desc' | 'mail_from_asc' | 'mail_rcpt_desc' | 'mail_rcpt_asc' | 'subject_desc' | 'subject_asc';
@@ -26040,6 +26081,11 @@ interface IP {
26040
26081
  /** Zone of the IP address. */
26041
26082
  zone: Zone;
26042
26083
  }
26084
+ /** Ipam config. */
26085
+ interface IpamConfig {
26086
+ /** Defines whether the default route is enabled on that Gateway Network. */
26087
+ pushDefaultRoute: boolean;
26088
+ }
26043
26089
  /** List dhcp entries response. */
26044
26090
  interface ListDHCPEntriesResponse {
26045
26091
  /** DHCP entries in this page. */
@@ -26277,33 +26323,44 @@ type CreateGatewayNetworkRequest = {
26277
26323
  privateNetworkId: string;
26278
26324
  /** Defines whether to enable masquerade (dynamic NAT) on this network. */
26279
26325
  enableMasquerade: boolean;
26326
+ /**
26327
+ * Defines whether to enable DHCP on this Private Network. Defaults to `true`
26328
+ * if either `dhcp_id` or `dhcp` are present. If set to `true`, either
26329
+ * `dhcp_id` or `dhcp` must be present.
26330
+ */
26331
+ enableDhcp?: boolean;
26280
26332
  /**
26281
26333
  * ID of an existing DHCP configuration object to use for this GatewayNetwork.
26282
26334
  *
26283
- * One-of ('ipConfig'): at most one of 'dhcpId', 'dhcp', 'address' could be
26284
- * set.
26335
+ * One-of ('ipConfig'): at most one of 'dhcpId', 'dhcp', 'address',
26336
+ * 'ipamConfig' could be set.
26285
26337
  */
26286
26338
  dhcpId?: string;
26287
26339
  /**
26288
26340
  * New DHCP configuration object to use for this GatewayNetwork.
26289
26341
  *
26290
- * One-of ('ipConfig'): at most one of 'dhcpId', 'dhcp', 'address' could be
26291
- * set.
26342
+ * One-of ('ipConfig'): at most one of 'dhcpId', 'dhcp', 'address',
26343
+ * 'ipamConfig' could be set.
26292
26344
  */
26293
26345
  dhcp?: CreateDHCPRequest;
26294
26346
  /**
26295
26347
  * Static IP address in CIDR format to to use without DHCP.
26296
26348
  *
26297
- * One-of ('ipConfig'): at most one of 'dhcpId', 'dhcp', 'address' could be
26298
- * set.
26349
+ * One-of ('ipConfig'): at most one of 'dhcpId', 'dhcp', 'address',
26350
+ * 'ipamConfig' could be set.
26299
26351
  */
26300
26352
  address?: string;
26301
26353
  /**
26302
- * Defines whether to enable DHCP on this Private Network. Defaults to `true`
26303
- * if either `dhcp_id` or `dhcp` are present. If set to `true`, either
26304
- * `dhcp_id` or `dhcp` must be present.
26354
+ * Auto-configure the GatewayNetwork using Scaleway's IPAM (IP address
26355
+ * management service). Note: all or none of the GatewayNetworks for a single
26356
+ * gateway can use the IPAM. DHCP and IPAM configurations cannot be mixed.
26357
+ * Some products may require that the Public Gateway uses the IPAM, to ensure
26358
+ * correct functionality.
26359
+ *
26360
+ * One-of ('ipConfig'): at most one of 'dhcpId', 'dhcp', 'address',
26361
+ * 'ipamConfig' could be set.
26305
26362
  */
26306
- enableDhcp?: boolean;
26363
+ ipamConfig?: IpamConfig;
26307
26364
  };
26308
26365
  type UpdateGatewayNetworkRequest = {
26309
26366
  /** Zone to target. If none is passed will use default zone from the config. */
@@ -26312,20 +26369,29 @@ type UpdateGatewayNetworkRequest = {
26312
26369
  gatewayNetworkId: string;
26313
26370
  /** Defines whether to enable masquerade (dynamic NAT) on the GatewayNetwork. */
26314
26371
  enableMasquerade?: boolean;
26372
+ /** Defines whether to enable DHCP on the connected Private Network. */
26373
+ enableDhcp?: boolean;
26315
26374
  /**
26316
26375
  * ID of the new DHCP configuration object to use with this GatewayNetwork.
26317
26376
  *
26318
- * One-of ('ipConfig'): at most one of 'dhcpId', 'address' could be set.
26377
+ * One-of ('ipConfig'): at most one of 'dhcpId', 'address', 'ipamConfig' could
26378
+ * be set.
26319
26379
  */
26320
26380
  dhcpId?: string;
26321
- /** Defines whether to enable DHCP on the connected Private Network. */
26322
- enableDhcp?: boolean;
26323
26381
  /**
26324
26382
  * New static IP address.
26325
26383
  *
26326
- * One-of ('ipConfig'): at most one of 'dhcpId', 'address' could be set.
26384
+ * One-of ('ipConfig'): at most one of 'dhcpId', 'address', 'ipamConfig' could
26385
+ * be set.
26327
26386
  */
26328
26387
  address?: string;
26388
+ /**
26389
+ * New IPAM configuration to use for this GatewayNetwork.
26390
+ *
26391
+ * One-of ('ipConfig'): at most one of 'dhcpId', 'address', 'ipamConfig' could
26392
+ * be set.
26393
+ */
26394
+ ipamConfig?: IpamConfig;
26329
26395
  };
26330
26396
  type DeleteGatewayNetworkRequest = {
26331
26397
  /** Zone to target. If none is passed will use default zone from the config. */
@@ -27098,6 +27164,7 @@ type index_gen$1_GetGatewayRequest = GetGatewayRequest;
27098
27164
  type index_gen$1_GetIPRequest = GetIPRequest;
27099
27165
  type index_gen$1_GetPATRuleRequest = GetPATRuleRequest;
27100
27166
  type index_gen$1_IP = IP;
27167
+ type index_gen$1_IpamConfig = IpamConfig;
27101
27168
  type index_gen$1_ListDHCPEntriesRequest = ListDHCPEntriesRequest;
27102
27169
  type index_gen$1_ListDHCPEntriesRequestOrderBy = ListDHCPEntriesRequestOrderBy;
27103
27170
  type index_gen$1_ListDHCPEntriesResponse = ListDHCPEntriesResponse;
@@ -27135,7 +27202,7 @@ type index_gen$1_UpdateIPRequest = UpdateIPRequest;
27135
27202
  type index_gen$1_UpdatePATRuleRequest = UpdatePATRuleRequest;
27136
27203
  type index_gen$1_UpgradeGatewayRequest = UpgradeGatewayRequest;
27137
27204
  declare namespace index_gen$1 {
27138
- export { API$1 as API, type index_gen$1_CreateDHCPEntryRequest as CreateDHCPEntryRequest, type index_gen$1_CreateDHCPRequest as CreateDHCPRequest, type index_gen$1_CreateGatewayNetworkRequest as CreateGatewayNetworkRequest, type index_gen$1_CreateGatewayRequest as CreateGatewayRequest, type index_gen$1_CreateIPRequest as CreateIPRequest, type index_gen$1_CreatePATRuleRequest as CreatePATRuleRequest, type index_gen$1_DHCP as DHCP, type index_gen$1_DHCPEntry as DHCPEntry, type index_gen$1_DHCPEntryType as DHCPEntryType, type index_gen$1_DeleteDHCPEntryRequest as DeleteDHCPEntryRequest, type index_gen$1_DeleteDHCPRequest as DeleteDHCPRequest, type index_gen$1_DeleteGatewayNetworkRequest as DeleteGatewayNetworkRequest, type index_gen$1_DeleteGatewayRequest as DeleteGatewayRequest, type index_gen$1_DeleteIPRequest as DeleteIPRequest, type index_gen$1_DeletePATRuleRequest as DeletePATRuleRequest, index_gen$1_GATEWAY_NETWORK_TRANSIENT_STATUSES as GATEWAY_NETWORK_TRANSIENT_STATUSES, index_gen$1_GATEWAY_TRANSIENT_STATUSES as GATEWAY_TRANSIENT_STATUSES, type index_gen$1_Gateway as Gateway, type index_gen$1_GatewayNetwork as GatewayNetwork, type index_gen$1_GatewayNetworkStatus as GatewayNetworkStatus, type index_gen$1_GatewayStatus as GatewayStatus, type index_gen$1_GatewayType as GatewayType, type index_gen$1_GetDHCPEntryRequest as GetDHCPEntryRequest, type index_gen$1_GetDHCPRequest as GetDHCPRequest, type index_gen$1_GetGatewayNetworkRequest as GetGatewayNetworkRequest, type index_gen$1_GetGatewayRequest as GetGatewayRequest, type index_gen$1_GetIPRequest as GetIPRequest, type index_gen$1_GetPATRuleRequest as GetPATRuleRequest, type index_gen$1_IP as IP, type index_gen$1_ListDHCPEntriesRequest as ListDHCPEntriesRequest, type index_gen$1_ListDHCPEntriesRequestOrderBy as ListDHCPEntriesRequestOrderBy, type index_gen$1_ListDHCPEntriesResponse as ListDHCPEntriesResponse, type index_gen$1_ListDHCPsRequest as ListDHCPsRequest, type index_gen$1_ListDHCPsRequestOrderBy as ListDHCPsRequestOrderBy, type index_gen$1_ListDHCPsResponse as ListDHCPsResponse, type index_gen$1_ListGatewayNetworksRequest as ListGatewayNetworksRequest, type index_gen$1_ListGatewayNetworksRequestOrderBy as ListGatewayNetworksRequestOrderBy, type index_gen$1_ListGatewayNetworksResponse as ListGatewayNetworksResponse, type index_gen$1_ListGatewayTypesRequest as ListGatewayTypesRequest, type index_gen$1_ListGatewayTypesResponse as ListGatewayTypesResponse, type index_gen$1_ListGatewaysRequest as ListGatewaysRequest, type index_gen$1_ListGatewaysRequestOrderBy as ListGatewaysRequestOrderBy, type index_gen$1_ListGatewaysResponse as ListGatewaysResponse, type index_gen$1_ListIPsRequest as ListIPsRequest, type index_gen$1_ListIPsRequestOrderBy as ListIPsRequestOrderBy, type index_gen$1_ListIPsResponse as ListIPsResponse, type index_gen$1_ListPATRulesRequest as ListPATRulesRequest, type index_gen$1_ListPATRulesRequestOrderBy as ListPATRulesRequestOrderBy, type index_gen$1_ListPATRulesResponse as ListPATRulesResponse, type index_gen$1_PATRule as PATRule, type index_gen$1_PATRuleProtocol as PATRuleProtocol, type index_gen$1_RefreshSSHKeysRequest as RefreshSSHKeysRequest, type index_gen$1_SetDHCPEntriesRequest as SetDHCPEntriesRequest, type index_gen$1_SetDHCPEntriesRequestEntry as SetDHCPEntriesRequestEntry, type index_gen$1_SetDHCPEntriesResponse as SetDHCPEntriesResponse, type index_gen$1_SetPATRulesRequest as SetPATRulesRequest, type index_gen$1_SetPATRulesRequestRule as SetPATRulesRequestRule, type index_gen$1_SetPATRulesResponse as SetPATRulesResponse, type index_gen$1_UpdateDHCPEntryRequest as UpdateDHCPEntryRequest, type index_gen$1_UpdateDHCPRequest as UpdateDHCPRequest, type index_gen$1_UpdateGatewayNetworkRequest as UpdateGatewayNetworkRequest, type index_gen$1_UpdateGatewayRequest as UpdateGatewayRequest, type index_gen$1_UpdateIPRequest as UpdateIPRequest, type index_gen$1_UpdatePATRuleRequest as UpdatePATRuleRequest, type index_gen$1_UpgradeGatewayRequest as UpgradeGatewayRequest };
27205
+ export { API$1 as API, type index_gen$1_CreateDHCPEntryRequest as CreateDHCPEntryRequest, type index_gen$1_CreateDHCPRequest as CreateDHCPRequest, type index_gen$1_CreateGatewayNetworkRequest as CreateGatewayNetworkRequest, type index_gen$1_CreateGatewayRequest as CreateGatewayRequest, type index_gen$1_CreateIPRequest as CreateIPRequest, type index_gen$1_CreatePATRuleRequest as CreatePATRuleRequest, type index_gen$1_DHCP as DHCP, type index_gen$1_DHCPEntry as DHCPEntry, type index_gen$1_DHCPEntryType as DHCPEntryType, type index_gen$1_DeleteDHCPEntryRequest as DeleteDHCPEntryRequest, type index_gen$1_DeleteDHCPRequest as DeleteDHCPRequest, type index_gen$1_DeleteGatewayNetworkRequest as DeleteGatewayNetworkRequest, type index_gen$1_DeleteGatewayRequest as DeleteGatewayRequest, type index_gen$1_DeleteIPRequest as DeleteIPRequest, type index_gen$1_DeletePATRuleRequest as DeletePATRuleRequest, index_gen$1_GATEWAY_NETWORK_TRANSIENT_STATUSES as GATEWAY_NETWORK_TRANSIENT_STATUSES, index_gen$1_GATEWAY_TRANSIENT_STATUSES as GATEWAY_TRANSIENT_STATUSES, type index_gen$1_Gateway as Gateway, type index_gen$1_GatewayNetwork as GatewayNetwork, type index_gen$1_GatewayNetworkStatus as GatewayNetworkStatus, type index_gen$1_GatewayStatus as GatewayStatus, type index_gen$1_GatewayType as GatewayType, type index_gen$1_GetDHCPEntryRequest as GetDHCPEntryRequest, type index_gen$1_GetDHCPRequest as GetDHCPRequest, type index_gen$1_GetGatewayNetworkRequest as GetGatewayNetworkRequest, type index_gen$1_GetGatewayRequest as GetGatewayRequest, type index_gen$1_GetIPRequest as GetIPRequest, type index_gen$1_GetPATRuleRequest as GetPATRuleRequest, type index_gen$1_IP as IP, type index_gen$1_IpamConfig as IpamConfig, type index_gen$1_ListDHCPEntriesRequest as ListDHCPEntriesRequest, type index_gen$1_ListDHCPEntriesRequestOrderBy as ListDHCPEntriesRequestOrderBy, type index_gen$1_ListDHCPEntriesResponse as ListDHCPEntriesResponse, type index_gen$1_ListDHCPsRequest as ListDHCPsRequest, type index_gen$1_ListDHCPsRequestOrderBy as ListDHCPsRequestOrderBy, type index_gen$1_ListDHCPsResponse as ListDHCPsResponse, type index_gen$1_ListGatewayNetworksRequest as ListGatewayNetworksRequest, type index_gen$1_ListGatewayNetworksRequestOrderBy as ListGatewayNetworksRequestOrderBy, type index_gen$1_ListGatewayNetworksResponse as ListGatewayNetworksResponse, type index_gen$1_ListGatewayTypesRequest as ListGatewayTypesRequest, type index_gen$1_ListGatewayTypesResponse as ListGatewayTypesResponse, type index_gen$1_ListGatewaysRequest as ListGatewaysRequest, type index_gen$1_ListGatewaysRequestOrderBy as ListGatewaysRequestOrderBy, type index_gen$1_ListGatewaysResponse as ListGatewaysResponse, type index_gen$1_ListIPsRequest as ListIPsRequest, type index_gen$1_ListIPsRequestOrderBy as ListIPsRequestOrderBy, type index_gen$1_ListIPsResponse as ListIPsResponse, type index_gen$1_ListPATRulesRequest as ListPATRulesRequest, type index_gen$1_ListPATRulesRequestOrderBy as ListPATRulesRequestOrderBy, type index_gen$1_ListPATRulesResponse as ListPATRulesResponse, type index_gen$1_PATRule as PATRule, type index_gen$1_PATRuleProtocol as PATRuleProtocol, type index_gen$1_RefreshSSHKeysRequest as RefreshSSHKeysRequest, type index_gen$1_SetDHCPEntriesRequest as SetDHCPEntriesRequest, type index_gen$1_SetDHCPEntriesRequestEntry as SetDHCPEntriesRequestEntry, type index_gen$1_SetDHCPEntriesResponse as SetDHCPEntriesResponse, type index_gen$1_SetPATRulesRequest as SetPATRulesRequest, type index_gen$1_SetPATRulesRequestRule as SetPATRulesRequestRule, type index_gen$1_SetPATRulesResponse as SetPATRulesResponse, type index_gen$1_UpdateDHCPEntryRequest as UpdateDHCPEntryRequest, type index_gen$1_UpdateDHCPRequest as UpdateDHCPRequest, type index_gen$1_UpdateGatewayNetworkRequest as UpdateGatewayNetworkRequest, type index_gen$1_UpdateGatewayRequest as UpdateGatewayRequest, type index_gen$1_UpdateIPRequest as UpdateIPRequest, type index_gen$1_UpdatePATRuleRequest as UpdatePATRuleRequest, type index_gen$1_UpgradeGatewayRequest as UpgradeGatewayRequest };
27139
27206
  }
27140
27207
 
27141
27208
  declare namespace index$1 {
@@ -1,4 +1,4 @@
1
- const version = 'v1.26.0';
1
+ const version = 'v1.28.0';
2
2
  const userAgent = `scaleway-sdk-js/${version}`;
3
3
 
4
4
  export { userAgent, version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk",
3
- "version": "1.27.0",
3
+ "version": "1.29.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": "7ab7db70d5487dcd92cb758b90d242e0a3b25ebf"
38
+ "gitHead": "e013092926ce4f0c69f7d59c040037584c1e422b"
39
39
  }