@scaleway/sdk 1.13.0 → 1.14.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.
@@ -11,27 +11,7 @@ const jsonContentHeaders = {
11
11
  'Content-Type': 'application/json; charset=utf-8'
12
12
  };
13
13
 
14
- /**
15
- * Apple silicon API.
16
- *
17
- * Apple Mac mini as a service. Scaleway Apple silicon as-a-Service is built
18
- * using the latest generation of Apple Mac mini hardware (fifth generation).
19
- *
20
- * These dedicated Mac mini M1s are designed for developing, building, testing,
21
- * and signing applications for Apple devices, including iPhones, iPads, Mac
22
- * computers and much more.
23
- *
24
- * Get set to explore, learn and build on a dedicated Mac mini M1 with more
25
- * performance and speed than you ever thought possible.
26
- *
27
- * _Apple silicon as a Service comes with a minimum allocation period of 24
28
- * hours_*.
29
- *
30
- * Mac mini and macOS are trademarks of Apple Inc., registered in the U.S. and
31
- * other countries and regions. IOS is a trademark or registered trademark of
32
- * Cisco in the U.S. and other countries and is used by Apple under license.
33
- * Scaleway is not affiliated with Apple Inc.
34
- */
14
+ /** Apple silicon API. */
35
15
  class API extends API$1 {
36
16
  constructor() {
37
17
  var _this;
@@ -211,8 +191,8 @@ class API extends API$1 {
211
191
  path: `/apple-silicon/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/reinstall`
212
192
  }, unmarshalServer);
213
193
  }
214
- /** Lists the available zones of the API. */
215
194
  }
195
+ /** Lists the available zones of the API. */
216
196
  API.LOCALITIES = ['fr-par-3'];
217
197
 
218
198
  export { API };
@@ -390,10 +390,10 @@ class API extends API$1 {
390
390
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/os/${validatePathParam('osId', request.osId)}`
391
391
  }, unmarshalOS);
392
392
  }
393
- /** Lists the available zones of the API. */
394
393
  }
395
394
 
396
395
  /** Elastic Metal Private Network API. */
396
+ /** Lists the available zones of the API. */
397
397
  API.LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1'];
398
398
  class PrivateNetworkAPI extends API$1 {
399
399
  constructor() {
@@ -460,8 +460,8 @@ class PrivateNetworkAPI extends API$1 {
460
460
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/private-networks/${validatePathParam('privateNetworkId', request.privateNetworkId)}`
461
461
  });
462
462
  }
463
- /** Lists the available zones of the API. */
464
463
  }
464
+ /** Lists the available zones of the API. */
465
465
  PrivateNetworkAPI.LOCALITIES = ['fr-par-2'];
466
466
 
467
467
  export { API, PrivateNetworkAPI };
@@ -398,8 +398,8 @@ class API extends API$1 {
398
398
  path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/tokens/${validatePathParam('tokenId', request.tokenId)}`
399
399
  }, unmarshalToken);
400
400
  }
401
- /** Lists the available regions of the API. */
402
401
  }
402
+ /** Lists the available regions of the API. */
403
403
  API.LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
404
404
 
405
405
  export { API };
@@ -175,8 +175,8 @@ class API extends API$1 {
175
175
  path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips/${validatePathParam('fipId', request.fipId)}/mac`
176
176
  });
177
177
  }
178
- /** Lists the available zones of the API. */
179
178
  }
179
+ /** Lists the available zones of the API. */
180
180
  API.LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1'];
181
181
 
182
182
  export { API };
@@ -60,7 +60,7 @@ class API extends API$1 {
60
60
  this.waitForNamespace = (request, options) => waitForResource(options?.stop ?? (res => Promise.resolve(!NAMESPACE_TRANSIENT_STATUSES.includes(res.status))), this.getNamespace, request, options);
61
61
  /**
62
62
  * Create a new namespace. Create a new namespace in a specified Organization
63
- * or Proejct.
63
+ * or Project.
64
64
  *
65
65
  * @param request - The request {@link CreateNamespaceRequest}
66
66
  * @returns A Promise of Namespace
@@ -493,8 +493,8 @@ class API extends API$1 {
493
493
  path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/triggers/${validatePathParam('triggerId', request.triggerId)}`
494
494
  }, unmarshalTrigger);
495
495
  }
496
- /** Lists the available regions of the API. */
497
496
  }
497
+ /** Lists the available regions of the API. */
498
498
  API.LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
499
499
 
500
500
  export { API };
@@ -828,8 +828,8 @@ class API extends API$1 {
828
828
  }, unmarshalGetDashboardResponse);
829
829
  };
830
830
  }
831
- /** Lists the available zones of the API. */
832
831
  }
832
+ /** Lists the available zones of the API. */
833
833
  API.LOCALITIES = ['fr-par-1', 'fr-par-2', 'fr-par-3', 'nl-ams-1', 'nl-ams-2', 'pl-waw-1', 'pl-waw-2'];
834
834
 
835
835
  export { API };
@@ -510,8 +510,8 @@ class API extends API$1 {
510
510
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/twins/${validatePathParam('twinId', request.twinId)}`
511
511
  });
512
512
  }
513
- /** Lists the available regions of the API. */
514
513
  }
514
+ /** Lists the available regions of the API. */
515
515
  API.LOCALITIES = ['fr-par'];
516
516
 
517
517
  export { API };
@@ -371,8 +371,8 @@ class API extends API$1 {
371
371
  path: `/k8s/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/versions/${validatePathParam('versionName', request.versionName)}`
372
372
  }, unmarshalVersion);
373
373
  }
374
- /** Lists the available regions of the API. */
375
374
  }
375
+ /** Lists the available regions of the API. */
376
376
  API.LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
377
377
 
378
378
  export { API };
@@ -672,7 +672,6 @@ class API extends API$1 {
672
672
  path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam('lbId', request.lbId)}/private-networks/${validatePathParam('privateNetworkId', request.privateNetworkId)}/detach`
673
673
  });
674
674
  }
675
- /** Lists the available regions of the API. */
676
675
  }
677
676
 
678
677
  /**
@@ -681,6 +680,7 @@ class API extends API$1 {
681
680
  * This API allows you to manage your Scaleway Load Balancer services. Load
682
681
  * Balancer API.
683
682
  */
683
+ /** Lists the available regions of the API. */
684
684
  API.LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
685
685
  class ZonedAPI extends API$1 {
686
686
  constructor() {
@@ -1470,8 +1470,8 @@ class ZonedAPI extends API$1 {
1470
1470
  path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam('lbId', request.lbId)}/private-networks/${validatePathParam('privateNetworkId', request.privateNetworkId)}/detach`
1471
1471
  });
1472
1472
  }
1473
- /** Lists the available zones of the API. */
1474
1473
  }
1474
+ /** Lists the available zones of the API. */
1475
1475
  ZonedAPI.LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1', 'nl-ams-2', 'pl-waw-1', 'pl-waw-2'];
1476
1476
 
1477
1477
  export { API, ZonedAPI };
@@ -174,8 +174,8 @@ class API extends API$1 {
174
174
  path: `/mnq/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/credentials/${validatePathParam('credentialId', request.credentialId)}`
175
175
  }, unmarshalCredential);
176
176
  }
177
- /** Lists the available regions of the API. */
178
177
  }
178
+ /** Lists the available regions of the API. */
179
179
  API.LOCALITIES = ['fr-par'];
180
180
 
181
181
  export { API };
@@ -873,8 +873,8 @@ class API extends API$1 {
873
873
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/endpoints/${validatePathParam('endpointId', request.endpointId)}/migrate`
874
874
  }, unmarshalEndpoint);
875
875
  }
876
- /** Lists the available regions of the API. */
877
876
  }
877
+ /** Lists the available regions of the API. */
878
878
  API.LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
879
879
 
880
880
  export { API };
@@ -357,8 +357,8 @@ class API extends API$1 {
357
357
  path: `/redis/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/endpoints/${validatePathParam('endpointId', request.endpointId)}`
358
358
  }, unmarshalEndpoint);
359
359
  }
360
- /** Lists the available zones of the API. */
361
360
  }
361
+ /** Lists the available zones of the API. */
362
362
  API.LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1', 'nl-ams-2', 'pl-waw-1', 'pl-waw-2'];
363
363
 
364
364
  export { API };
@@ -223,8 +223,8 @@ class API extends API$1 {
223
223
  urlParams: urlParams(['force', request.force])
224
224
  }, unmarshalTag);
225
225
  }
226
- /** Lists the available regions of the API. */
227
226
  }
227
+ /** Lists the available regions of the API. */
228
228
  API.LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
229
229
 
230
230
  export { API };
@@ -272,8 +272,8 @@ class API extends API$1 {
272
272
  path: `/secret-manager/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/secrets/${validatePathParam('secretId', request.secretId)}/versions/${validatePathParam('revision', request.revision)}/destroy`
273
273
  }, unmarshalSecretVersion);
274
274
  }
275
- /** Lists the available regions of the API. */
276
275
  }
276
+ /** Lists the available regions of the API. */
277
277
  API.LOCALITIES = ['fr-par'];
278
278
 
279
279
  export { API };
@@ -72,6 +72,7 @@ const marshalPasswordGenerationParams = (request, defaults) => ({
72
72
  no_uppercase_letters: request.noUppercaseLetters
73
73
  });
74
74
  const marshalAddSecretOwnerRequest = (request, defaults) => ({
75
+ product: request.product ?? 'unknown',
75
76
  product_name: request.productName
76
77
  });
77
78
  const marshalCreateSecretRequest = (request, defaults) => ({
@@ -58,20 +58,12 @@ class API extends API$1 {
58
58
  return _this.client.fetch({
59
59
  method: 'GET',
60
60
  path: `/transactional-email/v1alpha1/regions/${validatePathParam('region', request.region ?? _this.client.settings.defaultRegion)}/emails`,
61
- urlParams: urlParams(['domain_id', request.domainId], ['mail_from', request.mailFrom], ['mail_rcpt', request.mailRcpt], ['mail_to', request.mailTo], ['message_id', request.messageId], ['order_by', request.orderBy ?? 'created_at_desc'], ['page', request.page], ['page_size', request.pageSize ?? _this.client.settings.defaultPageSize], ['project_id', request.projectId], ['since', request.since], ['statuses', request.statuses], ['subject', request.subject], ['until', request.until])
61
+ urlParams: urlParams(['domain_id', request.domainId], ['mail_from', request.mailFrom], ['mail_rcpt', request.mailRcpt], ['mail_to', request.mailTo], ['message_id', request.messageId], ['order_by', request.orderBy ?? 'created_at_desc'], ['page', request.page], ['page_size', request.pageSize ?? _this.client.settings.defaultPageSize], ['project_id', request.projectId], ['search', request.search], ['since', request.since], ['statuses', request.statuses], ['subject', request.subject], ['until', request.until])
62
62
  }, unmarshalListEmailsResponse);
63
63
  };
64
64
  /**
65
65
  * List emails. Retrieve the list of emails sent from a specific domain or for
66
- * a specific Project or Organization. You must specify the `region`. You can
67
- * filter your emails in ascending or descending order using:
68
- *
69
- * - Created_at
70
- * - Updated_at
71
- * - Status
72
- * - Mail_from
73
- * - Mail_rcpt
74
- * - Subject
66
+ * a specific Project or Organization. You must specify the `region`.
75
67
  *
76
68
  * @param request - The request {@link ListEmailsRequest}
77
69
  * @returns A Promise of ListEmailsResponse
@@ -195,8 +187,8 @@ class API extends API$1 {
195
187
  path: `/transactional-email/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/domains/${validatePathParam('domainId', request.domainId)}/check`
196
188
  }, unmarshalDomain);
197
189
  }
198
- /** Lists the available regions of the API. */
199
190
  }
191
+ /** Lists the available regions of the API. */
200
192
  API.LOCALITIES = ['fr-par'];
201
193
 
202
194
  export { API };
@@ -94,8 +94,8 @@ class API extends API$1 {
94
94
  path: `/vpc/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/private-networks/${validatePathParam('privateNetworkId', request.privateNetworkId)}`
95
95
  });
96
96
  }
97
- /** Lists the available zones of the API. */
98
97
  }
98
+ /** Lists the available zones of the API. */
99
99
  API.LOCALITIES = ['fr-par-1', 'fr-par-2', 'fr-par-3', 'nl-ams-1', 'nl-ams-2', 'pl-waw-1', 'pl-waw-2'];
100
100
 
101
101
  export { API };
@@ -224,8 +224,8 @@ class API extends API$1 {
224
224
  path: `/vpc/v2/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/private-networks/${validatePathParam('privateNetworkId', request.privateNetworkId)}/subnets`
225
225
  }, unmarshalDeleteSubnetsResponse);
226
226
  }
227
- /** Lists the available regions of the API. */
228
227
  }
228
+ /** Lists the available regions of the API. */
229
229
  API.LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
230
230
 
231
231
  export { API };
@@ -42,6 +42,7 @@ const unmarshalVPC = data => {
42
42
  isDefault: data.is_default,
43
43
  name: data.name,
44
44
  organizationId: data.organization_id,
45
+ privateNetworkCount: data.private_network_count,
45
46
  projectId: data.project_id,
46
47
  region: data.region,
47
48
  tags: data.tags,
@@ -588,8 +588,8 @@ class API extends API$1 {
588
588
  path: `/vpc-gw/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/gateways/${validatePathParam('gatewayId', request.gatewayId)}/refresh-ssh-keys`
589
589
  }, unmarshalGateway);
590
590
  }
591
- /** Lists the available zones of the API. */
592
591
  }
592
+ /** Lists the available zones of the API. */
593
593
  API.LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1', 'nl-ams-2', 'pl-waw-1', 'pl-waw-2'];
594
594
 
595
595
  export { API };
@@ -141,8 +141,8 @@ class API extends API$1 {
141
141
  urlParams: urlParams(['hosting_id', request.hostingId], ['only_options', request.onlyOptions], ['order_by', request.orderBy ?? 'price_asc'], ['without_options', request.withoutOptions])
142
142
  }, unmarshalListOffersResponse);
143
143
  }
144
- /** Lists the available regions of the API. */
145
144
  }
145
+ /** Lists the available regions of the API. */
146
146
  API.LOCALITIES = ['fr-par'];
147
147
 
148
148
  export { API };
package/dist/index.cjs CHANGED
@@ -497,7 +497,7 @@ const assertValidSettings = obj => {
497
497
  }
498
498
  };
499
499
 
500
- const version = 'v1.12.0';
500
+ const version = 'v1.13.0';
501
501
  const userAgent = `scaleway-sdk-js/${version}`;
502
502
 
503
503
  const isBrowser = () => typeof window !== 'undefined' && typeof window.document !== 'undefined';
@@ -2281,27 +2281,7 @@ const jsonContentHeaders$m = {
2281
2281
  'Content-Type': 'application/json; charset=utf-8'
2282
2282
  };
2283
2283
 
2284
- /**
2285
- * Apple silicon API.
2286
- *
2287
- * Apple Mac mini as a service. Scaleway Apple silicon as-a-Service is built
2288
- * using the latest generation of Apple Mac mini hardware (fifth generation).
2289
- *
2290
- * These dedicated Mac mini M1s are designed for developing, building, testing,
2291
- * and signing applications for Apple devices, including iPhones, iPads, Mac
2292
- * computers and much more.
2293
- *
2294
- * Get set to explore, learn and build on a dedicated Mac mini M1 with more
2295
- * performance and speed than you ever thought possible.
2296
- *
2297
- * _Apple silicon as a Service comes with a minimum allocation period of 24
2298
- * hours_*.
2299
- *
2300
- * Mac mini and macOS are trademarks of Apple Inc., registered in the U.S. and
2301
- * other countries and regions. IOS is a trademark or registered trademark of
2302
- * Cisco in the U.S. and other countries and is used by Apple under license.
2303
- * Scaleway is not affiliated with Apple Inc.
2304
- */
2284
+ /** Apple silicon API. */
2305
2285
  let API$p = class API extends API$r {
2306
2286
  /** Lists the available zones of the API. */
2307
2287
  static LOCALITIES = ['fr-par-3'];
@@ -7477,7 +7457,7 @@ let API$i = class API extends API$r {
7477
7457
 
7478
7458
  /**
7479
7459
  * Create a new namespace. Create a new namespace in a specified Organization
7480
- * or Proejct.
7460
+ * or Project.
7481
7461
  *
7482
7462
  * @param request - The request {@link CreateNamespaceRequest}
7483
7463
  * @returns A Promise of Namespace
@@ -19513,6 +19493,7 @@ const marshalPasswordGenerationParams = (request, defaults) => ({
19513
19493
  no_uppercase_letters: request.noUppercaseLetters
19514
19494
  });
19515
19495
  const marshalAddSecretOwnerRequest = (request, defaults) => ({
19496
+ product: request.product ?? 'unknown',
19516
19497
  product_name: request.productName
19517
19498
  });
19518
19499
  const marshalCreateSecretRequest = (request, defaults) => ({
@@ -20264,20 +20245,12 @@ let API$4 = class API extends API$r {
20264
20245
  pageOfListEmails = (request = {}) => this.client.fetch({
20265
20246
  method: 'GET',
20266
20247
  path: `/transactional-email/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/emails`,
20267
- urlParams: urlParams(['domain_id', request.domainId], ['mail_from', request.mailFrom], ['mail_rcpt', request.mailRcpt], ['mail_to', request.mailTo], ['message_id', request.messageId], ['order_by', request.orderBy ?? 'created_at_desc'], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId], ['since', request.since], ['statuses', request.statuses], ['subject', request.subject], ['until', request.until])
20248
+ urlParams: urlParams(['domain_id', request.domainId], ['mail_from', request.mailFrom], ['mail_rcpt', request.mailRcpt], ['mail_to', request.mailTo], ['message_id', request.messageId], ['order_by', request.orderBy ?? 'created_at_desc'], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId], ['search', request.search], ['since', request.since], ['statuses', request.statuses], ['subject', request.subject], ['until', request.until])
20268
20249
  }, unmarshalListEmailsResponse);
20269
20250
 
20270
20251
  /**
20271
20252
  * List emails. Retrieve the list of emails sent from a specific domain or for
20272
- * a specific Project or Organization. You must specify the `region`. You can
20273
- * filter your emails in ascending or descending order using:
20274
- *
20275
- * - Created_at
20276
- * - Updated_at
20277
- * - Status
20278
- * - Mail_from
20279
- * - Mail_rcpt
20280
- * - Subject
20253
+ * a specific Project or Organization. You must specify the `region`.
20281
20254
  *
20282
20255
  * @param request - The request {@link ListEmailsRequest}
20283
20256
  * @returns A Promise of ListEmailsResponse
@@ -20572,6 +20545,7 @@ const unmarshalVPC = data => {
20572
20545
  isDefault: data.is_default,
20573
20546
  name: data.name,
20574
20547
  organizationId: data.organization_id,
20548
+ privateNetworkCount: data.private_network_count,
20575
20549
  projectId: data.project_id,
20576
20550
  region: data.region,
20577
20551
  tags: data.tags,
package/dist/index.d.ts CHANGED
@@ -1387,27 +1387,7 @@ type ReinstallServerRequest = {
1387
1387
  serverId: string;
1388
1388
  };
1389
1389
 
1390
- /**
1391
- * Apple silicon API.
1392
- *
1393
- * Apple Mac mini as a service. Scaleway Apple silicon as-a-Service is built
1394
- * using the latest generation of Apple Mac mini hardware (fifth generation).
1395
- *
1396
- * These dedicated Mac mini M1s are designed for developing, building, testing,
1397
- * and signing applications for Apple devices, including iPhones, iPads, Mac
1398
- * computers and much more.
1399
- *
1400
- * Get set to explore, learn and build on a dedicated Mac mini M1 with more
1401
- * performance and speed than you ever thought possible.
1402
- *
1403
- * _Apple silicon as a Service comes with a minimum allocation period of 24
1404
- * hours_*.
1405
- *
1406
- * Mac mini and macOS are trademarks of Apple Inc., registered in the U.S. and
1407
- * other countries and regions. IOS is a trademark or registered trademark of
1408
- * Cisco in the U.S. and other countries and is used by Apple under license.
1409
- * Scaleway is not affiliated with Apple Inc.
1410
- */
1390
+ /** Apple silicon API. */
1411
1391
  declare class API$p extends API$r {
1412
1392
  /** Lists the available zones of the API. */
1413
1393
  static readonly LOCALITIES: Zone[];
@@ -7627,7 +7607,7 @@ declare class API$i extends API$r {
7627
7607
  waitForNamespace: (request: Readonly<GetNamespaceRequest$2>, options?: Readonly<WaitForOptions<Namespace$2>>) => Promise<Namespace$2>;
7628
7608
  /**
7629
7609
  * Create a new namespace. Create a new namespace in a specified Organization
7630
- * or Proejct.
7610
+ * or Project.
7631
7611
  *
7632
7612
  * @param request - The request {@link CreateNamespaceRequest}
7633
7613
  * @returns A Promise of Namespace
@@ -14668,8 +14648,9 @@ type DeleteClusterRequest$1 = {
14668
14648
  /** ID of the cluster to delete. */
14669
14649
  clusterId: string;
14670
14650
  /**
14671
- * Defines whether all volumes (including retain volume type) and Load
14672
- * Balancers with a name starting with the cluster ID will also be deleted.
14651
+ * Defines whether all volumes (including retain volume type), empty Private
14652
+ * Networks and Load Balancers with a name starting with the cluster ID will
14653
+ * also be deleted.
14673
14654
  */
14674
14655
  withAdditionalResources: boolean;
14675
14656
  };
@@ -23835,10 +23816,10 @@ type DeleteTagRequest = {
23835
23816
  /** UUID of the tag. */
23836
23817
  tagId: string;
23837
23818
  /**
23838
- * If two tags share the same digest the deletion will fail unless this
23839
- * parameter is set to true.
23819
+ * @deprecated If two tags share the same digest the deletion will fail unless
23820
+ * this parameter is set to true (deprecated).
23840
23821
  */
23841
- force: boolean;
23822
+ force?: boolean;
23842
23823
  };
23843
23824
 
23844
23825
  /** Container Registry API. */
@@ -24071,6 +24052,7 @@ declare namespace index$6 {
24071
24052
  }
24072
24053
 
24073
24054
  type ListSecretsRequestOrderBy = 'name_asc' | 'name_desc' | 'created_at_asc' | 'created_at_desc' | 'updated_at_asc' | 'updated_at_desc';
24055
+ type Product = 'unknown';
24074
24056
  type SecretStatus = 'ready' | 'locked';
24075
24057
  type SecretVersionStatus = 'unknown' | 'enabled' | 'disabled' | 'destroyed';
24076
24058
  /** Access secret version response. */
@@ -24260,8 +24242,13 @@ type AddSecretOwnerRequest = {
24260
24242
  region?: Region;
24261
24243
  /** ID of the secret. */
24262
24244
  secretId: string;
24263
- /** Name of the product to add. */
24264
- productName: string;
24245
+ /**
24246
+ * @deprecated (Deprecated: use product field) ID of the product to add (see
24247
+ * product enum).
24248
+ */
24249
+ productName?: string;
24250
+ /** ID of the product to add (see product enum). */
24251
+ product?: Product;
24265
24252
  };
24266
24253
  type CreateSecretVersionRequest = {
24267
24254
  /**
@@ -24694,6 +24681,7 @@ type index_gen$6_ListSecretsRequest = ListSecretsRequest;
24694
24681
  type index_gen$6_ListSecretsRequestOrderBy = ListSecretsRequestOrderBy;
24695
24682
  type index_gen$6_ListSecretsResponse = ListSecretsResponse;
24696
24683
  type index_gen$6_PasswordGenerationParams = PasswordGenerationParams;
24684
+ type index_gen$6_Product = Product;
24697
24685
  type index_gen$6_Secret = Secret;
24698
24686
  type index_gen$6_SecretStatus = SecretStatus;
24699
24687
  type index_gen$6_SecretVersion = SecretVersion;
@@ -24725,6 +24713,7 @@ declare namespace index_gen$6 {
24725
24713
  index_gen$6_ListSecretsRequestOrderBy as ListSecretsRequestOrderBy,
24726
24714
  index_gen$6_ListSecretsResponse as ListSecretsResponse,
24727
24715
  index_gen$6_PasswordGenerationParams as PasswordGenerationParams,
24716
+ index_gen$6_Product as Product,
24728
24717
  index_gen$6_Secret as Secret,
24729
24718
  index_gen$6_SecretStatus as SecretStatus,
24730
24719
  index_gen$6_SecretVersion as SecretVersion,
@@ -25125,11 +25114,11 @@ type CreateEmailRequest = {
25125
25114
  region?: Region;
25126
25115
  /** Sender information. Must be from a checked domain declared in the Project. */
25127
25116
  from?: CreateEmailRequestAddress;
25128
- /** Array of recipient information (limited to 1 recipient). */
25117
+ /** An array of the primary recipient's information. */
25129
25118
  to?: CreateEmailRequestAddress[];
25130
- /** Array of recipient information (unimplemented). */
25119
+ /** An array of the carbon copy recipient's information. */
25131
25120
  cc?: CreateEmailRequestAddress[];
25132
- /** Array of recipient information (unimplemented). */
25121
+ /** An array of the blind carbon copy recipient's information. */
25133
25122
  bcc?: CreateEmailRequestAddress[];
25134
25123
  /** Subject of the email. */
25135
25124
  subject: string;
@@ -25184,17 +25173,9 @@ type ListEmailsRequest = {
25184
25173
  statuses?: EmailStatus[];
25185
25174
  /** (Optional) List emails with this subject. */
25186
25175
  subject?: string;
25187
- /**
25188
- * (Optional) List emails corresponding to specific criteria. You can filter
25189
- * your emails in ascending or descending order using:
25190
- *
25191
- * - Created_at
25192
- * - Updated_at
25193
- * - Status
25194
- * - Mail_from
25195
- * - Mail_rcpt
25196
- * - Subject.
25197
- */
25176
+ /** (Optional) List emails by searching to all fields. */
25177
+ search?: string;
25178
+ /** (Optional) List emails corresponding to specific criteria. */
25198
25179
  orderBy?: ListEmailsRequestOrderBy;
25199
25180
  };
25200
25181
  type GetStatisticsRequest = {
@@ -25315,15 +25296,7 @@ declare class API$4 extends API$r {
25315
25296
  protected pageOfListEmails: (request?: Readonly<ListEmailsRequest>) => Promise<ListEmailsResponse>;
25316
25297
  /**
25317
25298
  * List emails. Retrieve the list of emails sent from a specific domain or for
25318
- * a specific Project or Organization. You must specify the `region`. You can
25319
- * filter your emails in ascending or descending order using:
25320
- *
25321
- * - Created_at
25322
- * - Updated_at
25323
- * - Status
25324
- * - Mail_from
25325
- * - Mail_rcpt
25326
- * - Subject
25299
+ * a specific Project or Organization. You must specify the `region`.
25327
25300
  *
25328
25301
  * @param request - The request {@link ListEmailsRequest}
25329
25302
  * @returns A Promise of ListEmailsResponse
@@ -25711,6 +25684,8 @@ interface VPC {
25711
25684
  createdAt?: Date;
25712
25685
  /** Date the VPC was last modified. */
25713
25686
  updatedAt?: Date;
25687
+ /** Number of Private Networks within this VPC. */
25688
+ privateNetworkCount: number;
25714
25689
  }
25715
25690
  type ListVPCsRequest = {
25716
25691
  /**
@@ -1,4 +1,4 @@
1
- const version = 'v1.12.0';
1
+ const version = 'v1.13.0';
2
2
  const userAgent = `scaleway-sdk-js/${version}`;
3
3
 
4
4
  export { userAgent, version };
@@ -37,8 +37,6 @@ const buildDefaultMessage = (status, body) => {
37
37
  * @public
38
38
  */
39
39
  class ScalewayError extends Error {
40
- /** The message originating from the payload. */
41
-
42
40
  constructor( /** The response status. */
43
41
  status, /** The response payload. */
44
42
  body, /** The augmented message. */
@@ -50,6 +48,7 @@ class ScalewayError extends Error {
50
48
  this.status = status;
51
49
  this.body = body;
52
50
  this.message = message;
51
+ /** The message originating from the payload. */
53
52
  this.rawMessage = void 0;
54
53
  this.name = 'ScalewayError';
55
54
  this.rawMessage = typeof body === 'object' && typeof body.message === 'string' ? body.message : undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk",
3
- "version": "1.13.0",
3
+ "version": "1.14.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": "12cd8b0097d63171b890494d218861e8dcc1948a"
38
+ "gitHead": "d61458f916f364649a14e96eae3b2d23b7cedef4"
39
39
  }