@scaleway/sdk 2.10.0 → 2.11.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/index.cjs CHANGED
@@ -497,7 +497,7 @@ const assertValidSettings = obj => {
497
497
  }
498
498
  };
499
499
 
500
- const version = 'v2.9.0';
500
+ const version = 'v2.10.0';
501
501
  const userAgent = `scaleway-sdk-js/${version}`;
502
502
 
503
503
  const isBrowser = () =>
@@ -1706,7 +1706,7 @@ const waitForResource = (stop, fetcher, request, options, strategy = createExpon
1706
1706
  *
1707
1707
  * @internal
1708
1708
  */
1709
- let API$w = class API {
1709
+ let API$x = class API {
1710
1710
  constructor(client) {
1711
1711
  this.client = client;
1712
1712
  }
@@ -2079,7 +2079,7 @@ const jsonContentHeaders$u = {
2079
2079
  *
2080
2080
  * User related data. This API allows you to manage projects.
2081
2081
  */
2082
- let API$v = class API extends API$w {
2082
+ let API$w = class API extends API$x {
2083
2083
  /**
2084
2084
  * Create a new Project for an Organization. Deprecated in favor of Account
2085
2085
  * API v3. Generate a new Project for an Organization, specifying its
@@ -2164,9 +2164,9 @@ let API$v = class API extends API$w {
2164
2164
  // This file was automatically generated. DO NOT EDIT.
2165
2165
  // If you have any remark or suggestion do not hesitate to open an issue.
2166
2166
 
2167
- var index_gen$u = /*#__PURE__*/Object.freeze({
2167
+ var index_gen$v = /*#__PURE__*/Object.freeze({
2168
2168
  __proto__: null,
2169
- API: API$v
2169
+ API: API$w
2170
2170
  });
2171
2171
 
2172
2172
  // This file was automatically generated. DO NOT EDIT.
@@ -2214,7 +2214,7 @@ const jsonContentHeaders$t = {
2214
2214
  *
2215
2215
  * This API allows you to manage projects.
2216
2216
  */
2217
- class ProjectAPI extends API$w {
2217
+ class ProjectAPI extends API$x {
2218
2218
  /**
2219
2219
  * Create a new Project for an Organization. Generate a new Project for an
2220
2220
  * Organization, specifying its configuration including name and description.
@@ -2334,7 +2334,7 @@ var validationRules_gen$e = /*#__PURE__*/Object.freeze({
2334
2334
  // This file was automatically generated. DO NOT EDIT.
2335
2335
  // If you have any remark or suggestion do not hesitate to open an issue.
2336
2336
 
2337
- var index_gen$t = /*#__PURE__*/Object.freeze({
2337
+ var index_gen$u = /*#__PURE__*/Object.freeze({
2338
2338
  __proto__: null,
2339
2339
  ProjectAPI: ProjectAPI,
2340
2340
  ValidationRules: validationRules_gen$e
@@ -2342,8 +2342,8 @@ var index_gen$t = /*#__PURE__*/Object.freeze({
2342
2342
 
2343
2343
  var index$y = /*#__PURE__*/Object.freeze({
2344
2344
  __proto__: null,
2345
- v2: index_gen$u,
2346
- v3: index_gen$t
2345
+ v2: index_gen$v,
2346
+ v3: index_gen$u
2347
2347
  });
2348
2348
 
2349
2349
  // This file was automatically generated. DO NOT EDIT.
@@ -2467,7 +2467,7 @@ const jsonContentHeaders$s = {
2467
2467
  };
2468
2468
 
2469
2469
  /** Apple silicon API. */
2470
- let API$u = class API extends API$w {
2470
+ let API$v = class API extends API$x {
2471
2471
  /** Lists the available zones of the API. */
2472
2472
  static LOCALITIES = ['fr-par-3'];
2473
2473
 
@@ -2635,15 +2635,15 @@ let API$u = class API extends API$w {
2635
2635
  // This file was automatically generated. DO NOT EDIT.
2636
2636
  // If you have any remark or suggestion do not hesitate to open an issue.
2637
2637
 
2638
- var index_gen$s = /*#__PURE__*/Object.freeze({
2638
+ var index_gen$t = /*#__PURE__*/Object.freeze({
2639
2639
  __proto__: null,
2640
- API: API$u,
2640
+ API: API$v,
2641
2641
  SERVER_TRANSIENT_STATUSES: SERVER_TRANSIENT_STATUSES$2
2642
2642
  });
2643
2643
 
2644
2644
  var index$x = /*#__PURE__*/Object.freeze({
2645
2645
  __proto__: null,
2646
- v1alpha1: index_gen$s
2646
+ v1alpha1: index_gen$t
2647
2647
  });
2648
2648
 
2649
2649
  // This file was automatically generated. DO NOT EDIT.
@@ -3070,7 +3070,7 @@ const jsonContentHeaders$r = {
3070
3070
  *
3071
3071
  * This API allows to manage your Elastic Metal server.
3072
3072
  */
3073
- let API$t = class API extends API$w {
3073
+ let API$u = class API extends API$x {
3074
3074
  /** Lists the available zones of the API. */
3075
3075
  static LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1', 'nl-ams-2'];
3076
3076
  pageOfListServers = (request = {}) => this.client.fetch({
@@ -3420,7 +3420,7 @@ let API$t = class API extends API$w {
3420
3420
  };
3421
3421
 
3422
3422
  /** Elastic Metal Private Network API. */
3423
- class PrivateNetworkAPI extends API$w {
3423
+ class PrivateNetworkAPI extends API$x {
3424
3424
  /** Lists the available zones of the API. */
3425
3425
  static LOCALITIES = ['fr-par-2'];
3426
3426
 
@@ -3478,7 +3478,7 @@ class PrivateNetworkAPI extends API$w {
3478
3478
  });
3479
3479
  }
3480
3480
 
3481
- class BaremetalV1UtilsAPI extends API$t {
3481
+ class BaremetalV1UtilsAPI extends API$u {
3482
3482
  /**
3483
3483
  * Waits for {@link ServerInstall} to be in a final state.
3484
3484
  *
@@ -3705,7 +3705,7 @@ const unmarshalListDiscountsResponse = data => {
3705
3705
  totalCount: data.total_count
3706
3706
  };
3707
3707
  };
3708
- const unmarshalInvoice = data => {
3708
+ const unmarshalInvoice$1 = data => {
3709
3709
  if (!isJSONObject(data)) {
3710
3710
  throw new TypeError(`Unmarshalling the type 'Invoice' failed as data isn't a dictionary.`);
3711
3711
  }
@@ -3720,12 +3720,12 @@ const unmarshalInvoice = data => {
3720
3720
  totalUntaxed: data.total_untaxed ? unmarshalMoney(data.total_untaxed) : undefined
3721
3721
  };
3722
3722
  };
3723
- const unmarshalListInvoicesResponse = data => {
3723
+ const unmarshalListInvoicesResponse$1 = data => {
3724
3724
  if (!isJSONObject(data)) {
3725
3725
  throw new TypeError(`Unmarshalling the type 'ListInvoicesResponse' failed as data isn't a dictionary.`);
3726
3726
  }
3727
3727
  return {
3728
- invoices: unmarshalArrayOfObject(data.invoices, unmarshalInvoice),
3728
+ invoices: unmarshalArrayOfObject(data.invoices, unmarshalInvoice$1),
3729
3729
  totalCount: data.total_count
3730
3730
  };
3731
3731
  };
@@ -3737,7 +3737,7 @@ const unmarshalListInvoicesResponse = data => {
3737
3737
  *
3738
3738
  * This API allows you to query your consumption.
3739
3739
  */
3740
- let API$s = class API extends API$w {
3740
+ let API$t = class API extends API$x {
3741
3741
  /**
3742
3742
  * Get current month's consumption. The consumption reflects the amount of
3743
3743
  * money you have spent for the products you have used. The consumption value
@@ -3755,7 +3755,7 @@ let API$s = class API extends API$w {
3755
3755
  method: 'GET',
3756
3756
  path: `/billing/v2alpha1/invoices`,
3757
3757
  urlParams: urlParams(['invoice_type', request.invoiceType], ['order_by', request.orderBy], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['started_after', request.startedAfter], ['started_before', request.startedBefore])
3758
- }, unmarshalListInvoicesResponse);
3758
+ }, unmarshalListInvoicesResponse$1);
3759
3759
 
3760
3760
  /**
3761
3761
  * List invoices. List all your invoices, filtering by `start_date` and
@@ -3798,6 +3798,193 @@ let API$s = class API extends API$w {
3798
3798
  // This file was automatically generated. DO NOT EDIT.
3799
3799
  // If you have any remark or suggestion do not hesitate to open an issue.
3800
3800
 
3801
+ var index_gen$s = /*#__PURE__*/Object.freeze({
3802
+ __proto__: null,
3803
+ API: API$t
3804
+ });
3805
+
3806
+ // This file was automatically generated. DO NOT EDIT.
3807
+ // If you have any remark or suggestion do not hesitate to open an issue.
3808
+ const unmarshalInvoice = data => {
3809
+ if (!isJSONObject(data)) {
3810
+ throw new TypeError(`Unmarshalling the type 'Invoice' failed as data isn't a dictionary.`);
3811
+ }
3812
+ return {
3813
+ billingPeriod: unmarshalDate(data.billing_period),
3814
+ customerName: data.customer_name,
3815
+ dueDate: unmarshalDate(data.due_date),
3816
+ id: data.id,
3817
+ issuedDate: unmarshalDate(data.issued_date),
3818
+ number: data.number,
3819
+ organizationId: data.organization_id,
3820
+ organizationName: data.organization_name,
3821
+ sellerName: data.seller_name,
3822
+ startDate: unmarshalDate(data.start_date),
3823
+ state: data.state,
3824
+ stopDate: unmarshalDate(data.stop_date),
3825
+ totalDiscount: data.total_discount ? unmarshalMoney(data.total_discount) : undefined,
3826
+ totalTax: data.total_tax ? unmarshalMoney(data.total_tax) : undefined,
3827
+ totalTaxed: data.total_taxed ? unmarshalMoney(data.total_taxed) : undefined,
3828
+ totalUndiscount: data.total_undiscount ? unmarshalMoney(data.total_undiscount) : undefined,
3829
+ totalUntaxed: data.total_untaxed ? unmarshalMoney(data.total_untaxed) : undefined,
3830
+ type: data.type
3831
+ };
3832
+ };
3833
+ const unmarshalListConsumptionsResponseConsumption = data => {
3834
+ if (!isJSONObject(data)) {
3835
+ throw new TypeError(`Unmarshalling the type 'ListConsumptionsResponseConsumption' failed as data isn't a dictionary.`);
3836
+ }
3837
+ return {
3838
+ categoryName: data.category_name,
3839
+ productName: data.product_name,
3840
+ projectId: data.project_id,
3841
+ resourceName: data.resource_name,
3842
+ sku: data.sku,
3843
+ value: data.value ? unmarshalMoney(data.value) : undefined
3844
+ };
3845
+ };
3846
+ const unmarshalListConsumptionsResponse = data => {
3847
+ if (!isJSONObject(data)) {
3848
+ throw new TypeError(`Unmarshalling the type 'ListConsumptionsResponse' failed as data isn't a dictionary.`);
3849
+ }
3850
+ return {
3851
+ consumptions: unmarshalArrayOfObject(data.consumptions, unmarshalListConsumptionsResponseConsumption),
3852
+ totalCount: data.total_count,
3853
+ totalDiscountUntaxedValue: data.total_discount_untaxed_value,
3854
+ updatedAt: unmarshalDate(data.updated_at)
3855
+ };
3856
+ };
3857
+ const unmarshalListInvoicesResponse = data => {
3858
+ if (!isJSONObject(data)) {
3859
+ throw new TypeError(`Unmarshalling the type 'ListInvoicesResponse' failed as data isn't a dictionary.`);
3860
+ }
3861
+ return {
3862
+ invoices: unmarshalArrayOfObject(data.invoices, unmarshalInvoice),
3863
+ totalCount: data.total_count
3864
+ };
3865
+ };
3866
+ const unmarshalListTaxesResponseTax = data => {
3867
+ if (!isJSONObject(data)) {
3868
+ throw new TypeError(`Unmarshalling the type 'ListTaxesResponseTax' failed as data isn't a dictionary.`);
3869
+ }
3870
+ return {
3871
+ currency: data.currency,
3872
+ description: data.description,
3873
+ rate: data.rate,
3874
+ totalTaxValue: data.total_tax_value
3875
+ };
3876
+ };
3877
+ const unmarshalListTaxesResponse = data => {
3878
+ if (!isJSONObject(data)) {
3879
+ throw new TypeError(`Unmarshalling the type 'ListTaxesResponse' failed as data isn't a dictionary.`);
3880
+ }
3881
+ return {
3882
+ taxes: unmarshalArrayOfObject(data.taxes, unmarshalListTaxesResponseTax),
3883
+ totalCount: data.total_count,
3884
+ updatedAt: unmarshalDate(data.updated_at)
3885
+ };
3886
+ };
3887
+
3888
+ // This file was automatically generated. DO NOT EDIT.
3889
+ // If you have any remark or suggestion do not hesitate to open an issue.
3890
+ /**
3891
+ * Billing API.
3892
+ *
3893
+ * This API allows you to query your consumption.
3894
+ */
3895
+ let API$s = class API extends API$x {
3896
+ pageOfListConsumptions = (request = {}) => this.client.fetch({
3897
+ method: 'GET',
3898
+ path: `/billing/v2beta1/consumptions`,
3899
+ urlParams: urlParams(['billing_period', request.billingPeriod], ['category_name', request.categoryName], ['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ...Object.entries(resolveOneOf([{
3900
+ default: this.client.settings.defaultOrganizationId,
3901
+ param: 'organization_id',
3902
+ value: request.organizationId
3903
+ }, {
3904
+ default: this.client.settings.defaultProjectId,
3905
+ param: 'project_id',
3906
+ value: request.projectId
3907
+ }])))
3908
+ }, unmarshalListConsumptionsResponse);
3909
+
3910
+ /**
3911
+ * Get monthly consumption. Consumption allows you to retrieve your past or
3912
+ * current consumption cost, by project or category.
3913
+ *
3914
+ * @param request - The request {@link ListConsumptionsRequest}
3915
+ * @returns A Promise of ListConsumptionsResponse
3916
+ */
3917
+ listConsumptions = (request = {}) => enrichForPagination('consumptions', this.pageOfListConsumptions, request);
3918
+ pageOfListTaxes = (request = {}) => this.client.fetch({
3919
+ method: 'GET',
3920
+ path: `/billing/v2beta1/taxes`,
3921
+ urlParams: urlParams(['billing_period', request.billingPeriod], ['order_by', request.orderBy], ['organization_id', request.organizationId ?? this.client.settings.defaultOrganizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
3922
+ }, unmarshalListTaxesResponse);
3923
+
3924
+ /**
3925
+ * Get monthly consumption taxes. Consumption Tax allows you to retrieve your
3926
+ * past or current tax charges, by project or category.
3927
+ *
3928
+ * @param request - The request {@link ListTaxesRequest}
3929
+ * @returns A Promise of ListTaxesResponse
3930
+ */
3931
+ listTaxes = (request = {}) => enrichForPagination('taxes', this.pageOfListTaxes, request);
3932
+ pageOfListInvoices = (request = {}) => this.client.fetch({
3933
+ method: 'GET',
3934
+ path: `/billing/v2beta1/invoices`,
3935
+ urlParams: urlParams(['billing_period_start_after', request.billingPeriodStartAfter], ['billing_period_start_before', request.billingPeriodStartBefore], ['invoice_type', request.invoiceType], ['order_by', request.orderBy], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
3936
+ }, unmarshalListInvoicesResponse);
3937
+
3938
+ /**
3939
+ * List invoices. List all your invoices, filtering by `start_date` and
3940
+ * `invoice_type`. Each invoice has its own ID.
3941
+ *
3942
+ * @param request - The request {@link ListInvoicesRequest}
3943
+ * @returns A Promise of ListInvoicesResponse
3944
+ */
3945
+ listInvoices = (request = {}) => enrichForPagination('invoices', this.pageOfListInvoices, request);
3946
+
3947
+ /**
3948
+ * Export invoices. Export invoices in a CSV file.
3949
+ *
3950
+ * @param request - The request {@link ExportInvoicesRequest}
3951
+ * @returns A Promise of Blob
3952
+ */
3953
+ exportInvoices = (request = {}) => this.client.fetch({
3954
+ method: 'GET',
3955
+ path: `/billing/v2beta1/export-invoices`,
3956
+ urlParams: urlParams(['dl', 1], ['billing_period_start_after', request.billingPeriodStartAfter], ['billing_period_start_before', request.billingPeriodStartBefore], ['file_type', request.fileType], ['invoice_type', request.invoiceType], ['order_by', request.orderBy], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize]),
3957
+ responseType: 'blob'
3958
+ });
3959
+
3960
+ /**
3961
+ * Get an invoice. Get a specific invoice, specified by its ID.
3962
+ *
3963
+ * @param request - The request {@link GetInvoiceRequest}
3964
+ * @returns A Promise of Invoice
3965
+ */
3966
+ getInvoice = request => this.client.fetch({
3967
+ method: 'GET',
3968
+ path: `/billing/v2beta1/invoices/${validatePathParam('invoiceId', request.invoiceId)}`
3969
+ }, unmarshalInvoice);
3970
+
3971
+ /**
3972
+ * Download an invoice. Download a specific invoice, specified by its ID.
3973
+ *
3974
+ * @param request - The request {@link DownloadInvoiceRequest}
3975
+ * @returns A Promise of Blob
3976
+ */
3977
+ downloadInvoice = request => this.client.fetch({
3978
+ method: 'GET',
3979
+ path: `/billing/v2beta1/invoices/${validatePathParam('invoiceId', request.invoiceId)}/download`,
3980
+ urlParams: urlParams(['dl', 1], ['file_type', request.fileType]),
3981
+ responseType: 'blob'
3982
+ });
3983
+ };
3984
+
3985
+ // This file was automatically generated. DO NOT EDIT.
3986
+ // If you have any remark or suggestion do not hesitate to open an issue.
3987
+
3801
3988
  var index_gen$r = /*#__PURE__*/Object.freeze({
3802
3989
  __proto__: null,
3803
3990
  API: API$s
@@ -3805,7 +3992,8 @@ var index_gen$r = /*#__PURE__*/Object.freeze({
3805
3992
 
3806
3993
  var index$u = /*#__PURE__*/Object.freeze({
3807
3994
  __proto__: null,
3808
- v2alpha1: index_gen$r
3995
+ v2alpha1: index_gen$s,
3996
+ v2beta1: index_gen$r
3809
3997
  });
3810
3998
 
3811
3999
  // This file was automatically generated. DO NOT EDIT.
@@ -4002,7 +4190,7 @@ const jsonContentHeaders$q = {
4002
4190
  *
4003
4191
  * This API allows you to use and manage your Block Storage volumes.
4004
4192
  */
4005
- let API$r = class API extends API$w {
4193
+ let API$r = class API extends API$x {
4006
4194
  /** Lists the available zones of the API. */
4007
4195
  static LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1', 'nl-ams-3', 'pl-waw-3'];
4008
4196
  pageOfListVolumeTypes = (request = {}) => this.client.fetch({
@@ -4536,7 +4724,7 @@ const jsonContentHeaders$p = {
4536
4724
  * Scaleway's Cockpit stores metrics and logs and provides a dedicated Grafana
4537
4725
  * for dashboarding to visualize them.
4538
4726
  */
4539
- let API$q = class API extends API$w {
4727
+ let API$q = class API extends API$x {
4540
4728
  /**
4541
4729
  * Activate the Cockpit of the specified Project ID.
4542
4730
  *
@@ -5258,7 +5446,7 @@ const jsonContentHeaders$o = {
5258
5446
  };
5259
5447
 
5260
5448
  /** Serverless Containers API. */
5261
- let API$p = class API extends API$w {
5449
+ let API$p = class API extends API$x {
5262
5450
  /** Lists the available regions of the API. */
5263
5451
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
5264
5452
  pageOfListNamespaces = (request = {}) => this.client.fetch({
@@ -6467,7 +6655,7 @@ const jsonContentHeaders$n = {
6467
6655
  };
6468
6656
 
6469
6657
  /** Managed Document Databases API. */
6470
- let API$o = class API extends API$w {
6658
+ let API$o = class API extends API$x {
6471
6659
  /** Lists the available regions of the API. */
6472
6660
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
6473
6661
  pageOfListDatabaseEngines = (request = {}) => this.client.fetch({
@@ -8474,7 +8662,7 @@ const jsonContentHeaders$m = {
8474
8662
  *
8475
8663
  * Manage your domains, DNS zones and records with the Domains and DNS API.
8476
8664
  */
8477
- let API$n = class API extends API$w {
8665
+ let API$n = class API extends API$x {
8478
8666
  pageOfListDNSZones = request => this.client.fetch({
8479
8667
  method: 'GET',
8480
8668
  path: `/domain/v2beta1/dns-zones`,
@@ -8826,7 +9014,7 @@ let API$n = class API extends API$w {
8826
9014
  *
8827
9015
  * Manage your domains and contacts.
8828
9016
  */
8829
- class RegistrarAPI extends API$w {
9017
+ class RegistrarAPI extends API$x {
8830
9018
  pageOfListTasks = (request = {}) => this.client.fetch({
8831
9019
  method: 'GET',
8832
9020
  path: `/domain/v2beta1/tasks`,
@@ -9364,7 +9552,7 @@ const jsonContentHeaders$l = {
9364
9552
  };
9365
9553
 
9366
9554
  /** Elastic Metal - Flexible IP API. */
9367
- let API$m = class API extends API$w {
9555
+ let API$m = class API extends API$x {
9368
9556
  /** Lists the available zones of the API. */
9369
9557
  static LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1'];
9370
9558
 
@@ -9981,7 +10169,7 @@ const jsonContentHeaders$k = {
9981
10169
  };
9982
10170
 
9983
10171
  /** Serverless Functions API. */
9984
- let API$l = class API extends API$w {
10172
+ let API$l = class API extends API$x {
9985
10173
  /** Lists the available regions of the API. */
9986
10174
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
9987
10175
  pageOfListNamespaces = (request = {}) => this.client.fetch({
@@ -10979,7 +11167,7 @@ const jsonContentHeaders$j = {
10979
11167
  };
10980
11168
 
10981
11169
  /** IAM API. */
10982
- let API$k = class API extends API$w {
11170
+ let API$k = class API extends API$x {
10983
11171
  pageOfListSSHKeys = (request = {}) => this.client.fetch({
10984
11172
  method: 'GET',
10985
11173
  path: `/iam/v1alpha1/ssh-keys`,
@@ -13390,7 +13578,7 @@ const jsonContentHeaders$i = {
13390
13578
  };
13391
13579
 
13392
13580
  /** Instance API. */
13393
- let API$j = class API extends API$w {
13581
+ let API$j = class API extends API$x {
13394
13582
  /** Lists the available zones of the API. */
13395
13583
  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'];
13396
13584
 
@@ -14977,7 +15165,7 @@ const jsonContentHeaders$h = {
14977
15165
  *
14978
15166
  * This API allows you to manage IoT hubs and devices.
14979
15167
  */
14980
- let API$i = class API extends API$w {
15168
+ let API$i = class API extends API$x {
14981
15169
  /** Lists the available regions of the API. */
14982
15170
  static LOCALITIES = ['fr-par'];
14983
15171
  pageOfListHubs = (request = {}) => this.client.fetch({
@@ -15581,7 +15769,7 @@ const jsonContentHeaders$g = {
15581
15769
  * This API allows you to manage IP addresses with Scaleway's IP Address
15582
15770
  * Management tool.
15583
15771
  */
15584
- let API$h = class API extends API$w {
15772
+ let API$h = class API extends API$x {
15585
15773
  /** Lists the available regions of the API. */
15586
15774
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
15587
15775
 
@@ -15874,7 +16062,7 @@ const jsonContentHeaders$f = {
15874
16062
  };
15875
16063
 
15876
16064
  /** IPFS Pinning service API. */
15877
- let API$g = class API extends API$w {
16065
+ let API$g = class API extends API$x {
15878
16066
  /** Lists the available regions of the API. */
15879
16067
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
15880
16068
 
@@ -16056,7 +16244,7 @@ let API$g = class API extends API$w {
16056
16244
  };
16057
16245
 
16058
16246
  /** IPFS Naming service API. */
16059
- class IpnsAPI extends API$w {
16247
+ class IpnsAPI extends API$x {
16060
16248
  /** Lists the available regions of the API. */
16061
16249
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
16062
16250
 
@@ -16280,7 +16468,7 @@ const jsonContentHeaders$e = {
16280
16468
  };
16281
16469
 
16282
16470
  /** Serverless Jobs API. */
16283
- let API$f = class API extends API$w {
16471
+ let API$f = class API extends API$x {
16284
16472
  /** Lists the available regions of the API. */
16285
16473
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
16286
16474
 
@@ -16959,7 +17147,7 @@ const jsonContentHeaders$d = {
16959
17147
  };
16960
17148
 
16961
17149
  /** Kubernetes API. */
16962
- let API$e = class API extends API$w {
17150
+ let API$e = class API extends API$x {
16963
17151
  /** Lists the available regions of the API. */
16964
17152
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
16965
17153
  pageOfListClusters = (request = {}) => this.client.fetch({
@@ -18566,7 +18754,7 @@ const jsonContentHeaders$c = {
18566
18754
  *
18567
18755
  * This API allows you to manage your Scaleway Load Balancer services.
18568
18756
  */
18569
- class ZonedAPI extends API$w {
18757
+ class ZonedAPI extends API$x {
18570
18758
  /** Lists the available zones of the API. */
18571
18759
  static LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1', 'nl-ams-2', 'nl-ams-3', 'pl-waw-1', 'pl-waw-2', 'pl-waw-3'];
18572
18760
  pageOfListLbs = (request = {}) => this.client.fetch({
@@ -19369,7 +19557,7 @@ class ZonedAPI extends API$w {
19369
19557
  *
19370
19558
  * This API allows you to manage your load balancer service.
19371
19559
  */
19372
- let API$d = class API extends API$w {
19560
+ let API$d = class API extends API$x {
19373
19561
  /** Lists the available regions of the API. */
19374
19562
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
19375
19563
  pageOfListLbs = (request = {}) => this.client.fetch({
@@ -20205,7 +20393,7 @@ const unmarshalListImagesResponse$2 = data => {
20205
20393
  // This file was automatically generated. DO NOT EDIT.
20206
20394
  // If you have any remark or suggestion do not hesitate to open an issue.
20207
20395
  /** Marketplace API. */
20208
- let API$c = class API extends API$w {
20396
+ let API$c = class API extends API$x {
20209
20397
  pageOfListImages = (request = {}) => this.client.fetch({
20210
20398
  method: 'GET',
20211
20399
  path: `/marketplace/v1/images`,
@@ -20333,7 +20521,7 @@ const unmarshalListVersionsResponse = data => {
20333
20521
  // This file was automatically generated. DO NOT EDIT.
20334
20522
  // If you have any remark or suggestion do not hesitate to open an issue.
20335
20523
  /** Marketplace API. */
20336
- let API$b = class API extends API$w {
20524
+ let API$b = class API extends API$x {
20337
20525
  pageOfListImages = request => this.client.fetch({
20338
20526
  method: 'GET',
20339
20527
  path: `/marketplace/v2/images`,
@@ -20686,7 +20874,7 @@ const jsonContentHeaders$b = {
20686
20874
  *
20687
20875
  * This API allows you to manage Scaleway Messaging and Queueing NATS accounts.
20688
20876
  */
20689
- class NatsAPI extends API$w {
20877
+ class NatsAPI extends API$x {
20690
20878
  /** Lists the available regions of the API. */
20691
20879
  static LOCALITIES = ['fr-par'];
20692
20880
 
@@ -20822,7 +21010,7 @@ class NatsAPI extends API$w {
20822
21010
  *
20823
21011
  * This API allows you to manage Scaleway Messaging and Queueing SNS brokers.
20824
21012
  */
20825
- class SnsAPI extends API$w {
21013
+ class SnsAPI extends API$x {
20826
21014
  /** Lists the available regions of the API. */
20827
21015
  static LOCALITIES = ['fr-par'];
20828
21016
 
@@ -20944,7 +21132,7 @@ class SnsAPI extends API$w {
20944
21132
  *
20945
21133
  * This API allows you to manage Scaleway Messaging and Queueing SQS brokers.
20946
21134
  */
20947
- class SqsAPI extends API$w {
21135
+ class SqsAPI extends API$x {
20948
21136
  /** Lists the available regions of the API. */
20949
21137
  static LOCALITIES = ['fr-par'];
20950
21138
 
@@ -21236,6 +21424,7 @@ const unmarshalReadReplica = data => {
21236
21424
  return {
21237
21425
  endpoints: unmarshalArrayOfObject(data.endpoints, unmarshalEndpoint$1),
21238
21426
  id: data.id,
21427
+ instanceId: data.instance_id,
21239
21428
  region: data.region,
21240
21429
  sameZone: data.same_zone,
21241
21430
  status: data.status
@@ -21902,7 +22091,7 @@ const jsonContentHeaders$a = {
21902
22091
  };
21903
22092
 
21904
22093
  /** Managed Database for PostgreSQL and MySQL API. */
21905
- let API$a = class API extends API$w {
22094
+ let API$a = class API extends API$x {
21906
22095
  /** Lists the available regions of the API. */
21907
22096
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
21908
22097
  pageOfListDatabaseEngines = (request = {}) => this.client.fetch({
@@ -23119,7 +23308,7 @@ const jsonContentHeaders$9 = {
23119
23308
  };
23120
23309
 
23121
23310
  /** Managed Database for Redis™ API. */
23122
- let API$9 = class API extends API$w {
23311
+ let API$9 = class API extends API$x {
23123
23312
  /** Lists the available zones of the API. */
23124
23313
  static LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1', 'nl-ams-2', 'pl-waw-1', 'pl-waw-2'];
23125
23314
 
@@ -23613,7 +23802,7 @@ const jsonContentHeaders$8 = {
23613
23802
  };
23614
23803
 
23615
23804
  /** Container Registry API. */
23616
- let API$8 = class API extends API$w {
23805
+ let API$8 = class API extends API$x {
23617
23806
  /** Lists the available regions of the API. */
23618
23807
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
23619
23808
  pageOfListNamespaces = (request = {}) => this.client.fetch({
@@ -24028,7 +24217,7 @@ const jsonContentHeaders$7 = {
24028
24217
  * Secret Manager API. This API allows you to conveniently store, access and
24029
24218
  * share sensitive data.
24030
24219
  */
24031
- let API$7 = class API extends API$w {
24220
+ let API$7 = class API extends API$x {
24032
24221
  /** Lists the available regions of the API. */
24033
24222
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
24034
24223
 
@@ -24501,7 +24690,7 @@ const jsonContentHeaders$6 = {
24501
24690
  *
24502
24691
  * This API allows you to manage your Serverless SQL DB databases.
24503
24692
  */
24504
- let API$6 = class API extends API$w {
24693
+ let API$6 = class API extends API$x {
24505
24694
  /** Lists the available regions of the API. */
24506
24695
  static LOCALITIES = ['fr-par'];
24507
24696
 
@@ -24825,7 +25014,7 @@ const jsonContentHeaders$5 = {
24825
25014
  *
24826
25015
  * No Auth Service for end-to-end testing.
24827
25016
  */
24828
- let API$5 = class API extends API$w {
25017
+ let API$5 = class API extends API$x {
24829
25018
  /**
24830
25019
  * Register a user. Register a human and return a access-key and a secret-key
24831
25020
  * that must be used in all other commands.
@@ -25129,7 +25318,12 @@ const marshalCreateEmailRequestAttachment = (request, defaults) => ({
25129
25318
  name: request.name,
25130
25319
  type: request.type
25131
25320
  });
25321
+ const marshalCreateEmailRequestHeader = (request, defaults) => ({
25322
+ key: request.key,
25323
+ value: request.value
25324
+ });
25132
25325
  const marshalCreateEmailRequest = (request, defaults) => ({
25326
+ additional_headers: request.additionalHeaders !== undefined ? request.additionalHeaders.map(elt => marshalCreateEmailRequestHeader(elt)) : undefined,
25133
25327
  attachments: request.attachments !== undefined ? request.attachments.map(elt => marshalCreateEmailRequestAttachment(elt)) : undefined,
25134
25328
  bcc: request.bcc !== undefined ? request.bcc.map(elt => marshalCreateEmailRequestAddress(elt)) : undefined,
25135
25329
  cc: request.cc !== undefined ? request.cc.map(elt => marshalCreateEmailRequestAddress(elt)) : undefined,
@@ -25149,7 +25343,7 @@ const jsonContentHeaders$4 = {
25149
25343
  };
25150
25344
 
25151
25345
  /** Transactional Email API. */
25152
- let API$4 = class API extends API$w {
25346
+ let API$4 = class API extends API$x {
25153
25347
  /** Lists the available regions of the API. */
25154
25348
  static LOCALITIES = ['fr-par'];
25155
25349
 
@@ -25390,7 +25584,7 @@ const jsonContentHeaders$3 = {
25390
25584
  };
25391
25585
 
25392
25586
  /** VPC API. */
25393
- let API$3 = class API extends API$w {
25587
+ let API$3 = class API extends API$x {
25394
25588
  /** Lists the available zones of the API. */
25395
25589
  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'];
25396
25590
  pageOfListPrivateNetworks = (request = {}) => this.client.fetch({
@@ -25610,7 +25804,7 @@ const jsonContentHeaders$2 = {
25610
25804
  };
25611
25805
 
25612
25806
  /** VPC API. */
25613
- let API$2 = class API extends API$w {
25807
+ let API$2 = class API extends API$x {
25614
25808
  /** Lists the available regions of the API. */
25615
25809
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
25616
25810
  pageOfListVPCs = (request = {}) => this.client.fetch({
@@ -26207,7 +26401,7 @@ const jsonContentHeaders$1 = {
26207
26401
  };
26208
26402
 
26209
26403
  /** Public Gateways API. */
26210
- let API$1 = class API extends API$w {
26404
+ let API$1 = class API extends API$x {
26211
26405
  /** Lists the available zones of the API. */
26212
26406
  static LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1', 'nl-ams-2', 'nl-ams-3', 'pl-waw-1', 'pl-waw-2', 'pl-waw-3'];
26213
26407
  pageOfListGateways = (request = {}) => this.client.fetch({
@@ -26942,7 +27136,7 @@ const jsonContentHeaders = {
26942
27136
  };
26943
27137
 
26944
27138
  /** Web Hosting API. */
26945
- class API extends API$w {
27139
+ class API extends API$x {
26946
27140
  /** Lists the available regions of the API. */
26947
27141
  static LOCALITIES = ['fr-par', 'nl-ams'];
26948
27142
 
@@ -27126,7 +27320,7 @@ var index = /*#__PURE__*/Object.freeze({
27126
27320
  v1alpha1: index_gen
27127
27321
  });
27128
27322
 
27129
- exports.API = API$w;
27323
+ exports.API = API$x;
27130
27324
  exports.Account = index$y;
27131
27325
  exports.AppleSilicon = index$x;
27132
27326
  exports.BareMetal = index$v;