@scaleway/sdk 1.36.0 → 1.38.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 = 'v1.35.0';
500
+ const version = 'v1.37.0';
501
501
  const userAgent = `scaleway-sdk-js/${version}`;
502
502
 
503
503
  const isBrowser = () =>
@@ -1579,7 +1579,7 @@ const createAdvancedClient = (...configs) => {
1579
1579
  */
1580
1580
  const createClient = (profile = {}) => createAdvancedClient(withProfile(profile));
1581
1581
 
1582
- var index$w = /*#__PURE__*/Object.freeze({
1582
+ var index$x = /*#__PURE__*/Object.freeze({
1583
1583
  __proto__: null,
1584
1584
  AlreadyExistsError: AlreadyExistsError,
1585
1585
  DeniedAuthenticationError: DeniedAuthenticationError,
@@ -1707,7 +1707,7 @@ const waitForResource = (stop, fetcher, request, options, strategy = createExpon
1707
1707
  *
1708
1708
  * @internal
1709
1709
  */
1710
- let API$u = class API {
1710
+ let API$v = class API {
1711
1711
  constructor(client) {
1712
1712
  this.client = client;
1713
1713
  }
@@ -2071,7 +2071,7 @@ const marshalUpdateProjectRequest = (request, defaults) => ({
2071
2071
 
2072
2072
  // This file was automatically generated. DO NOT EDIT.
2073
2073
  // If you have any remark or suggestion do not hesitate to open an issue.
2074
- const jsonContentHeaders$s = {
2074
+ const jsonContentHeaders$t = {
2075
2075
  'Content-Type': 'application/json; charset=utf-8'
2076
2076
  };
2077
2077
 
@@ -2080,7 +2080,7 @@ const jsonContentHeaders$s = {
2080
2080
  *
2081
2081
  * User related data. This API allows you to manage projects.
2082
2082
  */
2083
- let API$t = class API extends API$u {
2083
+ let API$u = class API extends API$v {
2084
2084
  /**
2085
2085
  * Create a new Project for an Organization. Deprecated in favor of Account
2086
2086
  * API v3. Generate a new Project for an Organization, specifying its
@@ -2092,7 +2092,7 @@ let API$t = class API extends API$u {
2092
2092
  */
2093
2093
  createProject = (request = {}) => this.client.fetch({
2094
2094
  body: JSON.stringify(marshalCreateProjectRequest(request, this.client.settings)),
2095
- headers: jsonContentHeaders$s,
2095
+ headers: jsonContentHeaders$t,
2096
2096
  method: 'POST',
2097
2097
  path: `/account/v2/projects`
2098
2098
  }, unmarshalProject$1);
@@ -2156,7 +2156,7 @@ let API$t = class API extends API$u {
2156
2156
  */
2157
2157
  updateProject = (request = {}) => this.client.fetch({
2158
2158
  body: JSON.stringify(marshalUpdateProjectRequest(request, this.client.settings)),
2159
- headers: jsonContentHeaders$s,
2159
+ headers: jsonContentHeaders$t,
2160
2160
  method: 'PATCH',
2161
2161
  path: `/account/v2/projects/${validatePathParam('projectId', request.projectId ?? this.client.settings.defaultProjectId)}`
2162
2162
  }, unmarshalProject$1);
@@ -2165,9 +2165,9 @@ let API$t = class API extends API$u {
2165
2165
  // This file was automatically generated. DO NOT EDIT.
2166
2166
  // If you have any remark or suggestion do not hesitate to open an issue.
2167
2167
 
2168
- var index_gen$r = /*#__PURE__*/Object.freeze({
2168
+ var index_gen$s = /*#__PURE__*/Object.freeze({
2169
2169
  __proto__: null,
2170
- API: API$t
2170
+ API: API$u
2171
2171
  });
2172
2172
 
2173
2173
  // This file was automatically generated. DO NOT EDIT.
@@ -2206,7 +2206,7 @@ const marshalProjectApiUpdateProjectRequest = (request, defaults) => ({
2206
2206
 
2207
2207
  // This file was automatically generated. DO NOT EDIT.
2208
2208
  // If you have any remark or suggestion do not hesitate to open an issue.
2209
- const jsonContentHeaders$r = {
2209
+ const jsonContentHeaders$s = {
2210
2210
  'Content-Type': 'application/json; charset=utf-8'
2211
2211
  };
2212
2212
 
@@ -2215,7 +2215,7 @@ const jsonContentHeaders$r = {
2215
2215
  *
2216
2216
  * This API allows you to manage projects.
2217
2217
  */
2218
- class ProjectAPI extends API$u {
2218
+ class ProjectAPI extends API$v {
2219
2219
  /**
2220
2220
  * Create a new Project for an Organization. Generate a new Project for an
2221
2221
  * Organization, specifying its configuration including name and description.
@@ -2225,7 +2225,7 @@ class ProjectAPI extends API$u {
2225
2225
  */
2226
2226
  createProject = request => this.client.fetch({
2227
2227
  body: JSON.stringify(marshalProjectApiCreateProjectRequest(request, this.client.settings)),
2228
- headers: jsonContentHeaders$r,
2228
+ headers: jsonContentHeaders$s,
2229
2229
  method: 'POST',
2230
2230
  path: `/account/v3/projects`
2231
2231
  }, unmarshalProject);
@@ -2281,7 +2281,7 @@ class ProjectAPI extends API$u {
2281
2281
  */
2282
2282
  updateProject = (request = {}) => this.client.fetch({
2283
2283
  body: JSON.stringify(marshalProjectApiUpdateProjectRequest(request, this.client.settings)),
2284
- headers: jsonContentHeaders$r,
2284
+ headers: jsonContentHeaders$s,
2285
2285
  method: 'PATCH',
2286
2286
  path: `/account/v3/projects/${validatePathParam('projectId', request.projectId ?? this.client.settings.defaultProjectId)}`
2287
2287
  }, unmarshalProject);
@@ -2325,7 +2325,7 @@ const ProjectApiUpdateProjectRequest = {
2325
2325
  }
2326
2326
  };
2327
2327
 
2328
- var validationRules_gen$9 = /*#__PURE__*/Object.freeze({
2328
+ var validationRules_gen$c = /*#__PURE__*/Object.freeze({
2329
2329
  __proto__: null,
2330
2330
  ProjectApiCreateProjectRequest: ProjectApiCreateProjectRequest,
2331
2331
  ProjectApiListProjectsRequest: ProjectApiListProjectsRequest,
@@ -2335,16 +2335,16 @@ var validationRules_gen$9 = /*#__PURE__*/Object.freeze({
2335
2335
  // This file was automatically generated. DO NOT EDIT.
2336
2336
  // If you have any remark or suggestion do not hesitate to open an issue.
2337
2337
 
2338
- var index_gen$q = /*#__PURE__*/Object.freeze({
2338
+ var index_gen$r = /*#__PURE__*/Object.freeze({
2339
2339
  __proto__: null,
2340
2340
  ProjectAPI: ProjectAPI,
2341
- ValidationRules: validationRules_gen$9
2341
+ ValidationRules: validationRules_gen$c
2342
2342
  });
2343
2343
 
2344
- var index$v = /*#__PURE__*/Object.freeze({
2344
+ var index$w = /*#__PURE__*/Object.freeze({
2345
2345
  __proto__: null,
2346
- v2: index_gen$r,
2347
- v3: index_gen$q
2346
+ v2: index_gen$s,
2347
+ v3: index_gen$r
2348
2348
  });
2349
2349
 
2350
2350
  // This file was automatically generated. DO NOT EDIT.
@@ -2463,12 +2463,12 @@ const marshalUpdateServerRequest$2 = (request, defaults) => ({
2463
2463
 
2464
2464
  // This file was automatically generated. DO NOT EDIT.
2465
2465
  // If you have any remark or suggestion do not hesitate to open an issue.
2466
- const jsonContentHeaders$q = {
2466
+ const jsonContentHeaders$r = {
2467
2467
  'Content-Type': 'application/json; charset=utf-8'
2468
2468
  };
2469
2469
 
2470
2470
  /** Apple silicon API. */
2471
- let API$s = class API extends API$u {
2471
+ let API$t = class API extends API$v {
2472
2472
  /** Lists the available zones of the API. */
2473
2473
  static LOCALITIES = ['fr-par-3'];
2474
2474
 
@@ -2506,7 +2506,7 @@ let API$s = class API extends API$u {
2506
2506
  */
2507
2507
  createServer = request => this.client.fetch({
2508
2508
  body: JSON.stringify(marshalCreateServerRequest$2(request, this.client.settings)),
2509
- headers: jsonContentHeaders$q,
2509
+ headers: jsonContentHeaders$r,
2510
2510
  method: 'POST',
2511
2511
  path: `/apple-silicon/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers`
2512
2512
  }, unmarshalServer$2);
@@ -2584,7 +2584,7 @@ let API$s = class API extends API$u {
2584
2584
  */
2585
2585
  updateServer = request => this.client.fetch({
2586
2586
  body: JSON.stringify(marshalUpdateServerRequest$2(request, this.client.settings)),
2587
- headers: jsonContentHeaders$q,
2587
+ headers: jsonContentHeaders$r,
2588
2588
  method: 'PATCH',
2589
2589
  path: `/apple-silicon/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}`
2590
2590
  }, unmarshalServer$2);
@@ -2611,7 +2611,7 @@ let API$s = class API extends API$u {
2611
2611
  */
2612
2612
  rebootServer = request => this.client.fetch({
2613
2613
  body: '{}',
2614
- headers: jsonContentHeaders$q,
2614
+ headers: jsonContentHeaders$r,
2615
2615
  method: 'POST',
2616
2616
  path: `/apple-silicon/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/reboot`
2617
2617
  }, unmarshalServer$2);
@@ -2627,7 +2627,7 @@ let API$s = class API extends API$u {
2627
2627
  */
2628
2628
  reinstallServer = request => this.client.fetch({
2629
2629
  body: '{}',
2630
- headers: jsonContentHeaders$q,
2630
+ headers: jsonContentHeaders$r,
2631
2631
  method: 'POST',
2632
2632
  path: `/apple-silicon/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/reinstall`
2633
2633
  }, unmarshalServer$2);
@@ -2636,15 +2636,15 @@ let API$s = class API extends API$u {
2636
2636
  // This file was automatically generated. DO NOT EDIT.
2637
2637
  // If you have any remark or suggestion do not hesitate to open an issue.
2638
2638
 
2639
- var index_gen$p = /*#__PURE__*/Object.freeze({
2639
+ var index_gen$q = /*#__PURE__*/Object.freeze({
2640
2640
  __proto__: null,
2641
- API: API$s,
2641
+ API: API$t,
2642
2642
  SERVER_TRANSIENT_STATUSES: SERVER_TRANSIENT_STATUSES$2
2643
2643
  });
2644
2644
 
2645
- var index$u = /*#__PURE__*/Object.freeze({
2645
+ var index$v = /*#__PURE__*/Object.freeze({
2646
2646
  __proto__: null,
2647
- v1alpha1: index_gen$p
2647
+ v1alpha1: index_gen$q
2648
2648
  });
2649
2649
 
2650
2650
  // This file was automatically generated. DO NOT EDIT.
@@ -2682,7 +2682,7 @@ const unmarshalDisk = data => {
2682
2682
  type: data.type
2683
2683
  };
2684
2684
  };
2685
- const unmarshalIP$1 = data => {
2685
+ const unmarshalIP$2 = data => {
2686
2686
  if (!isJSONObject(data)) {
2687
2687
  throw new TypeError(`Unmarshalling the type 'IP' failed as data isn't a dictionary.`);
2688
2688
  }
@@ -2853,7 +2853,7 @@ const unmarshalServer$1 = data => {
2853
2853
  domain: data.domain,
2854
2854
  id: data.id,
2855
2855
  install: data.install ? unmarshalServerInstall(data.install) : undefined,
2856
- ips: unmarshalArrayOfObject(data.ips, unmarshalIP$1),
2856
+ ips: unmarshalArrayOfObject(data.ips, unmarshalIP$2),
2857
2857
  name: data.name,
2858
2858
  offerId: data.offer_id,
2859
2859
  offerName: data.offer_name,
@@ -3048,7 +3048,7 @@ const marshalStartBMCAccessRequest = (request, defaults) => ({
3048
3048
  const marshalStartServerRequest = (request, defaults) => ({
3049
3049
  boot_type: request.bootType ?? 'unknown_boot_type'
3050
3050
  });
3051
- const marshalUpdateIPRequest$1 = (request, defaults) => ({
3051
+ const marshalUpdateIPRequest$2 = (request, defaults) => ({
3052
3052
  reverse: request.reverse
3053
3053
  });
3054
3054
  const marshalUpdateServerRequest$1 = (request, defaults) => ({
@@ -3062,7 +3062,7 @@ const marshalUpdateSettingRequest = (request, defaults) => ({
3062
3062
 
3063
3063
  // This file was automatically generated. DO NOT EDIT.
3064
3064
  // If you have any remark or suggestion do not hesitate to open an issue.
3065
- const jsonContentHeaders$p = {
3065
+ const jsonContentHeaders$q = {
3066
3066
  'Content-Type': 'application/json; charset=utf-8'
3067
3067
  };
3068
3068
 
@@ -3071,7 +3071,7 @@ const jsonContentHeaders$p = {
3071
3071
  *
3072
3072
  * This API allows to manage your Elastic Metal server. Elastic Metal API.
3073
3073
  */
3074
- let API$r = class API extends API$u {
3074
+ let API$s = class API extends API$v {
3075
3075
  /** Lists the available zones of the API. */
3076
3076
  static LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1', 'nl-ams-2'];
3077
3077
  pageOfListServers = (request = {}) => this.client.fetch({
@@ -3119,7 +3119,7 @@ let API$r = class API extends API$u {
3119
3119
  */
3120
3120
  createServer = request => this.client.fetch({
3121
3121
  body: JSON.stringify(marshalCreateServerRequest$1(request, this.client.settings)),
3122
- headers: jsonContentHeaders$p,
3122
+ headers: jsonContentHeaders$q,
3123
3123
  method: 'POST',
3124
3124
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers`
3125
3125
  }, unmarshalServer$1);
@@ -3134,7 +3134,7 @@ let API$r = class API extends API$u {
3134
3134
  */
3135
3135
  updateServer = request => this.client.fetch({
3136
3136
  body: JSON.stringify(marshalUpdateServerRequest$1(request, this.client.settings)),
3137
- headers: jsonContentHeaders$p,
3137
+ headers: jsonContentHeaders$q,
3138
3138
  method: 'PATCH',
3139
3139
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}`
3140
3140
  }, unmarshalServer$1);
@@ -3148,7 +3148,7 @@ let API$r = class API extends API$u {
3148
3148
  */
3149
3149
  installServer = request => this.client.fetch({
3150
3150
  body: JSON.stringify(marshalInstallServerRequest(request, this.client.settings)),
3151
- headers: jsonContentHeaders$p,
3151
+ headers: jsonContentHeaders$q,
3152
3152
  method: 'POST',
3153
3153
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/install`
3154
3154
  }, unmarshalServer$1);
@@ -3186,7 +3186,7 @@ let API$r = class API extends API$u {
3186
3186
  */
3187
3187
  rebootServer = request => this.client.fetch({
3188
3188
  body: JSON.stringify(marshalRebootServerRequest(request, this.client.settings)),
3189
- headers: jsonContentHeaders$p,
3189
+ headers: jsonContentHeaders$q,
3190
3190
  method: 'POST',
3191
3191
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/reboot`
3192
3192
  }, unmarshalServer$1);
@@ -3199,7 +3199,7 @@ let API$r = class API extends API$u {
3199
3199
  */
3200
3200
  startServer = request => this.client.fetch({
3201
3201
  body: JSON.stringify(marshalStartServerRequest(request, this.client.settings)),
3202
- headers: jsonContentHeaders$p,
3202
+ headers: jsonContentHeaders$q,
3203
3203
  method: 'POST',
3204
3204
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/start`
3205
3205
  }, unmarshalServer$1);
@@ -3214,7 +3214,7 @@ let API$r = class API extends API$u {
3214
3214
  */
3215
3215
  stopServer = request => this.client.fetch({
3216
3216
  body: '{}',
3217
- headers: jsonContentHeaders$p,
3217
+ headers: jsonContentHeaders$q,
3218
3218
  method: 'POST',
3219
3219
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/stop`
3220
3220
  }, unmarshalServer$1);
@@ -3252,7 +3252,7 @@ let API$r = class API extends API$u {
3252
3252
  */
3253
3253
  startBMCAccess = request => this.client.fetch({
3254
3254
  body: JSON.stringify(marshalStartBMCAccessRequest(request, this.client.settings)),
3255
- headers: jsonContentHeaders$p,
3255
+ headers: jsonContentHeaders$q,
3256
3256
  method: 'POST',
3257
3257
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/bmc-access`
3258
3258
  }, unmarshalBMCAccess);
@@ -3289,11 +3289,11 @@ let API$r = class API extends API$u {
3289
3289
  * @returns A Promise of IP
3290
3290
  */
3291
3291
  updateIP = request => this.client.fetch({
3292
- body: JSON.stringify(marshalUpdateIPRequest$1(request, this.client.settings)),
3293
- headers: jsonContentHeaders$p,
3292
+ body: JSON.stringify(marshalUpdateIPRequest$2(request, this.client.settings)),
3293
+ headers: jsonContentHeaders$q,
3294
3294
  method: 'PATCH',
3295
3295
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/ips/${validatePathParam('ipId', request.ipId)}`
3296
- }, unmarshalIP$1);
3296
+ }, unmarshalIP$2);
3297
3297
 
3298
3298
  /**
3299
3299
  * Add server option. Add an option, such as Private Networks, to a specific
@@ -3304,7 +3304,7 @@ let API$r = class API extends API$u {
3304
3304
  */
3305
3305
  addOptionServer = request => this.client.fetch({
3306
3306
  body: JSON.stringify(marshalAddOptionServerRequest(request, this.client.settings)),
3307
- headers: jsonContentHeaders$p,
3307
+ headers: jsonContentHeaders$q,
3308
3308
  method: 'POST',
3309
3309
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/options/${validatePathParam('optionId', request.optionId)}`
3310
3310
  }, unmarshalServer$1);
@@ -3389,7 +3389,7 @@ let API$r = class API extends API$u {
3389
3389
  */
3390
3390
  updateSetting = request => this.client.fetch({
3391
3391
  body: JSON.stringify(marshalUpdateSettingRequest(request, this.client.settings)),
3392
- headers: jsonContentHeaders$p,
3392
+ headers: jsonContentHeaders$q,
3393
3393
  method: 'PATCH',
3394
3394
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/settings/${validatePathParam('settingId', request.settingId)}`
3395
3395
  }, unmarshalSetting);
@@ -3421,7 +3421,7 @@ let API$r = class API extends API$u {
3421
3421
  };
3422
3422
 
3423
3423
  /** Elastic Metal Private Network API. */
3424
- class PrivateNetworkAPI extends API$u {
3424
+ class PrivateNetworkAPI extends API$v {
3425
3425
  /** Lists the available zones of the API. */
3426
3426
  static LOCALITIES = ['fr-par-2'];
3427
3427
 
@@ -3434,7 +3434,7 @@ class PrivateNetworkAPI extends API$u {
3434
3434
  */
3435
3435
  addServerPrivateNetwork = request => this.client.fetch({
3436
3436
  body: JSON.stringify(marshalPrivateNetworkApiAddServerPrivateNetworkRequest(request, this.client.settings)),
3437
- headers: jsonContentHeaders$p,
3437
+ headers: jsonContentHeaders$q,
3438
3438
  method: 'POST',
3439
3439
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/private-networks`
3440
3440
  }, unmarshalServerPrivateNetwork);
@@ -3448,7 +3448,7 @@ class PrivateNetworkAPI extends API$u {
3448
3448
  */
3449
3449
  setServerPrivateNetworks = request => this.client.fetch({
3450
3450
  body: JSON.stringify(marshalPrivateNetworkApiSetServerPrivateNetworksRequest(request, this.client.settings)),
3451
- headers: jsonContentHeaders$p,
3451
+ headers: jsonContentHeaders$q,
3452
3452
  method: 'PUT',
3453
3453
  path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/private-networks`
3454
3454
  }, unmarshalSetServerPrivateNetworksResponse);
@@ -3479,7 +3479,7 @@ class PrivateNetworkAPI extends API$u {
3479
3479
  });
3480
3480
  }
3481
3481
 
3482
- class BaremetalV1UtilsAPI extends API$r {
3482
+ class BaremetalV1UtilsAPI extends API$s {
3483
3483
  /**
3484
3484
  * Waits for {@link ServerInstall} to be in a final state.
3485
3485
  *
@@ -3609,7 +3609,7 @@ const UpdateServerRequest = {
3609
3609
  }
3610
3610
  };
3611
3611
 
3612
- var validationRules_gen$8 = /*#__PURE__*/Object.freeze({
3612
+ var validationRules_gen$b = /*#__PURE__*/Object.freeze({
3613
3613
  __proto__: null,
3614
3614
  CreateServerRequest: CreateServerRequest,
3615
3615
  CreateServerRequestInstall: CreateServerRequestInstall,
@@ -3623,19 +3623,19 @@ var validationRules_gen$8 = /*#__PURE__*/Object.freeze({
3623
3623
  UpdateServerRequest: UpdateServerRequest
3624
3624
  });
3625
3625
 
3626
- var index$t = /*#__PURE__*/Object.freeze({
3626
+ var index$u = /*#__PURE__*/Object.freeze({
3627
3627
  __proto__: null,
3628
3628
  API: BaremetalV1UtilsAPI,
3629
3629
  PrivateNetworkAPI: PrivateNetworkAPI,
3630
3630
  SERVER_INSTALL_TRANSIENT_STATUSES: SERVER_INSTALL_TRANSIENT_STATUSES,
3631
3631
  SERVER_PRIVATE_NETWORK_TRANSIENT_STATUSES: SERVER_PRIVATE_NETWORK_TRANSIENT_STATUSES,
3632
3632
  SERVER_TRANSIENT_STATUSES: SERVER_TRANSIENT_STATUSES$1,
3633
- ValidationRules: validationRules_gen$8
3633
+ ValidationRules: validationRules_gen$b
3634
3634
  });
3635
3635
 
3636
- var index$s = /*#__PURE__*/Object.freeze({
3636
+ var index$t = /*#__PURE__*/Object.freeze({
3637
3637
  __proto__: null,
3638
- v1: index$t
3638
+ v1: index$u
3639
3639
  });
3640
3640
 
3641
3641
  // This file was automatically generated. DO NOT EDIT.
@@ -3693,7 +3693,7 @@ const unmarshalListInvoicesResponse = data => {
3693
3693
  *
3694
3694
  * This API allows you to query your consumption. Billing API.
3695
3695
  */
3696
- let API$q = class API extends API$u {
3696
+ let API$r = class API extends API$v {
3697
3697
  /**
3698
3698
  * Get current month's consumption. The consumption reflects the amount of
3699
3699
  * money you have spent for the products you have used. The consumption value
@@ -3739,14 +3739,14 @@ let API$q = class API extends API$u {
3739
3739
  // This file was automatically generated. DO NOT EDIT.
3740
3740
  // If you have any remark or suggestion do not hesitate to open an issue.
3741
3741
 
3742
- var index_gen$o = /*#__PURE__*/Object.freeze({
3742
+ var index_gen$p = /*#__PURE__*/Object.freeze({
3743
3743
  __proto__: null,
3744
- API: API$q
3744
+ API: API$r
3745
3745
  });
3746
3746
 
3747
- var index$r = /*#__PURE__*/Object.freeze({
3747
+ var index$s = /*#__PURE__*/Object.freeze({
3748
3748
  __proto__: null,
3749
- v2alpha1: index_gen$o
3749
+ v2alpha1: index_gen$p
3750
3750
  });
3751
3751
 
3752
3752
  // This file was automatically generated. DO NOT EDIT.
@@ -3940,7 +3940,7 @@ const marshalUpdateVolumeRequest$2 = (request, defaults) => ({
3940
3940
 
3941
3941
  // This file was automatically generated. DO NOT EDIT.
3942
3942
  // If you have any remark or suggestion do not hesitate to open an issue.
3943
- const jsonContentHeaders$o = {
3943
+ const jsonContentHeaders$p = {
3944
3944
  'Content-Type': 'application/json; charset=utf-8'
3945
3945
  };
3946
3946
 
@@ -3950,7 +3950,7 @@ const jsonContentHeaders$o = {
3950
3950
  * This API allows you to use and manage your Block Storage volumes. Scaleway
3951
3951
  * Block Storage API.
3952
3952
  */
3953
- let API$p = class API extends API$u {
3953
+ let API$q = class API extends API$v {
3954
3954
  /** Lists the available zones of the API. */
3955
3955
  static LOCALITIES = ['fr-par-1', 'pl-waw-3'];
3956
3956
  pageOfListVolumeTypes = (request = {}) => this.client.fetch({
@@ -3996,7 +3996,7 @@ let API$p = class API extends API$u {
3996
3996
  */
3997
3997
  createVolume = request => this.client.fetch({
3998
3998
  body: JSON.stringify(marshalCreateVolumeRequest$2(request, this.client.settings)),
3999
- headers: jsonContentHeaders$o,
3999
+ headers: jsonContentHeaders$p,
4000
4000
  method: 'POST',
4001
4001
  path: `/block/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/volumes`
4002
4002
  }, unmarshalVolume$4);
@@ -4044,7 +4044,7 @@ let API$p = class API extends API$u {
4044
4044
  */
4045
4045
  updateVolume = request => this.client.fetch({
4046
4046
  body: JSON.stringify(marshalUpdateVolumeRequest$2(request, this.client.settings)),
4047
- headers: jsonContentHeaders$o,
4047
+ headers: jsonContentHeaders$p,
4048
4048
  method: 'PATCH',
4049
4049
  path: `/block/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/volumes/${validatePathParam('volumeId', request.volumeId)}`
4050
4050
  }, unmarshalVolume$4);
@@ -4096,13 +4096,13 @@ let API$p = class API extends API$u {
4096
4096
  */
4097
4097
  createSnapshot = request => this.client.fetch({
4098
4098
  body: JSON.stringify(marshalCreateSnapshotRequest$3(request, this.client.settings)),
4099
- headers: jsonContentHeaders$o,
4099
+ headers: jsonContentHeaders$p,
4100
4100
  method: 'POST',
4101
4101
  path: `/block/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/snapshots`
4102
4102
  }, unmarshalSnapshot$3);
4103
4103
  importSnapshotFromS3 = request => this.client.fetch({
4104
4104
  body: JSON.stringify(marshalImportSnapshotFromS3Request(request, this.client.settings)),
4105
- headers: jsonContentHeaders$o,
4105
+ headers: jsonContentHeaders$p,
4106
4106
  method: 'POST',
4107
4107
  path: `/block/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/snapshots/import-from-s3`
4108
4108
  }, unmarshalSnapshot$3);
@@ -4126,7 +4126,7 @@ let API$p = class API extends API$u {
4126
4126
  */
4127
4127
  updateSnapshot = request => this.client.fetch({
4128
4128
  body: JSON.stringify(marshalUpdateSnapshotRequest$2(request, this.client.settings)),
4129
- headers: jsonContentHeaders$o,
4129
+ headers: jsonContentHeaders$p,
4130
4130
  method: 'PATCH',
4131
4131
  path: `/block/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/snapshots/${validatePathParam('snapshotId', request.snapshotId)}`
4132
4132
  }, unmarshalSnapshot$3);
@@ -4178,7 +4178,7 @@ const ListVolumesRequest = {
4178
4178
  }
4179
4179
  };
4180
4180
 
4181
- var validationRules_gen$7 = /*#__PURE__*/Object.freeze({
4181
+ var validationRules_gen$a = /*#__PURE__*/Object.freeze({
4182
4182
  __proto__: null,
4183
4183
  CreateSnapshotRequest: CreateSnapshotRequest,
4184
4184
  CreateVolumeRequest: CreateVolumeRequest,
@@ -4191,18 +4191,18 @@ var validationRules_gen$7 = /*#__PURE__*/Object.freeze({
4191
4191
  // This file was automatically generated. DO NOT EDIT.
4192
4192
  // If you have any remark or suggestion do not hesitate to open an issue.
4193
4193
 
4194
- var index_gen$n = /*#__PURE__*/Object.freeze({
4194
+ var index_gen$o = /*#__PURE__*/Object.freeze({
4195
4195
  __proto__: null,
4196
- API: API$p,
4196
+ API: API$q,
4197
4197
  REFERENCE_TRANSIENT_STATUSES: REFERENCE_TRANSIENT_STATUSES,
4198
4198
  SNAPSHOT_TRANSIENT_STATUSES: SNAPSHOT_TRANSIENT_STATUSES$3,
4199
4199
  VOLUME_TRANSIENT_STATUSES: VOLUME_TRANSIENT_STATUSES$1,
4200
- ValidationRules: validationRules_gen$7
4200
+ ValidationRules: validationRules_gen$a
4201
4201
  });
4202
4202
 
4203
- var index$q = /*#__PURE__*/Object.freeze({
4203
+ var index$r = /*#__PURE__*/Object.freeze({
4204
4204
  __proto__: null,
4205
- v1alpha1: index_gen$n
4205
+ v1alpha1: index_gen$o
4206
4206
  });
4207
4207
 
4208
4208
  // This file was automatically generated. DO NOT EDIT.
@@ -4245,7 +4245,8 @@ const unmarshalCockpitEndpoints = data => {
4245
4245
  alertmanagerUrl: data.alertmanager_url,
4246
4246
  grafanaUrl: data.grafana_url,
4247
4247
  logsUrl: data.logs_url,
4248
- metricsUrl: data.metrics_url
4248
+ metricsUrl: data.metrics_url,
4249
+ tracesUrl: data.traces_url
4249
4250
  };
4250
4251
  };
4251
4252
  const unmarshalContactPoint = data => {
@@ -4477,7 +4478,7 @@ const marshalTriggerTestAlertRequest = (request, defaults) => ({
4477
4478
 
4478
4479
  // This file was automatically generated. DO NOT EDIT.
4479
4480
  // If you have any remark or suggestion do not hesitate to open an issue.
4480
- const jsonContentHeaders$n = {
4481
+ const jsonContentHeaders$o = {
4481
4482
  'Content-Type': 'application/json; charset=utf-8'
4482
4483
  };
4483
4484
 
@@ -4488,7 +4489,7 @@ const jsonContentHeaders$n = {
4488
4489
  * Scaleway's Cockpit stores metrics and logs and provides a dedicated Grafana
4489
4490
  * for dashboarding to visualize them. Cockpit API.
4490
4491
  */
4491
- let API$o = class API extends API$u {
4492
+ let API$p = class API extends API$v {
4492
4493
  /**
4493
4494
  * Activate the Cockpit of the specified Project ID.
4494
4495
  *
@@ -4497,7 +4498,7 @@ let API$o = class API extends API$u {
4497
4498
  */
4498
4499
  activateCockpit = (request = {}) => this.client.fetch({
4499
4500
  body: JSON.stringify(marshalActivateCockpitRequest(request, this.client.settings)),
4500
- headers: jsonContentHeaders$n,
4501
+ headers: jsonContentHeaders$o,
4501
4502
  method: 'POST',
4502
4503
  path: `/cockpit/v1beta1/activate`
4503
4504
  }, unmarshalCockpit);
@@ -4543,7 +4544,7 @@ let API$o = class API extends API$u {
4543
4544
  */
4544
4545
  deactivateCockpit = (request = {}) => this.client.fetch({
4545
4546
  body: JSON.stringify(marshalDeactivateCockpitRequest(request, this.client.settings)),
4546
- headers: jsonContentHeaders$n,
4547
+ headers: jsonContentHeaders$o,
4547
4548
  method: 'POST',
4548
4549
  path: `/cockpit/v1beta1/deactivate`
4549
4550
  }, unmarshalCockpit);
@@ -4556,7 +4557,7 @@ let API$o = class API extends API$u {
4556
4557
  */
4557
4558
  resetCockpitGrafana = (request = {}) => this.client.fetch({
4558
4559
  body: JSON.stringify(marshalResetCockpitGrafanaRequest(request, this.client.settings)),
4559
- headers: jsonContentHeaders$n,
4560
+ headers: jsonContentHeaders$o,
4560
4561
  method: 'POST',
4561
4562
  path: `/cockpit/v1beta1/reset-grafana`
4562
4563
  }, unmarshalCockpit);
@@ -4569,7 +4570,7 @@ let API$o = class API extends API$u {
4569
4570
  */
4570
4571
  createDatasource = request => this.client.fetch({
4571
4572
  body: JSON.stringify(marshalCreateDatasourceRequest(request, this.client.settings)),
4572
- headers: jsonContentHeaders$n,
4573
+ headers: jsonContentHeaders$o,
4573
4574
  method: 'POST',
4574
4575
  path: `/cockpit/v1beta1/datasources`
4575
4576
  }, unmarshalDatasource);
@@ -4595,7 +4596,7 @@ let API$o = class API extends API$u {
4595
4596
  */
4596
4597
  createToken = (request = {}) => this.client.fetch({
4597
4598
  body: JSON.stringify(marshalCreateTokenRequest$2(request, this.client.settings)),
4598
- headers: jsonContentHeaders$n,
4599
+ headers: jsonContentHeaders$o,
4599
4600
  method: 'POST',
4600
4601
  path: `/cockpit/v1beta1/tokens`
4601
4602
  }, unmarshalToken$2);
@@ -4642,7 +4643,7 @@ let API$o = class API extends API$u {
4642
4643
  */
4643
4644
  createContactPoint = (request = {}) => this.client.fetch({
4644
4645
  body: JSON.stringify(marshalCreateContactPointRequest(request, this.client.settings)),
4645
- headers: jsonContentHeaders$n,
4646
+ headers: jsonContentHeaders$o,
4646
4647
  method: 'POST',
4647
4648
  path: `/cockpit/v1beta1/contact-points`
4648
4649
  }, unmarshalContactPoint);
@@ -4668,7 +4669,7 @@ let API$o = class API extends API$u {
4668
4669
  */
4669
4670
  deleteContactPoint = (request = {}) => this.client.fetch({
4670
4671
  body: JSON.stringify(marshalDeleteContactPointRequest(request, this.client.settings)),
4671
- headers: jsonContentHeaders$n,
4672
+ headers: jsonContentHeaders$o,
4672
4673
  method: 'POST',
4673
4674
  path: `/cockpit/v1beta1/delete-contact-point`
4674
4675
  });
@@ -4680,7 +4681,7 @@ let API$o = class API extends API$u {
4680
4681
  */
4681
4682
  enableManagedAlerts = (request = {}) => this.client.fetch({
4682
4683
  body: JSON.stringify(marshalEnableManagedAlertsRequest(request, this.client.settings)),
4683
- headers: jsonContentHeaders$n,
4684
+ headers: jsonContentHeaders$o,
4684
4685
  method: 'POST',
4685
4686
  path: `/cockpit/v1beta1/enable-managed-alerts`
4686
4687
  });
@@ -4692,7 +4693,7 @@ let API$o = class API extends API$u {
4692
4693
  */
4693
4694
  disableManagedAlerts = (request = {}) => this.client.fetch({
4694
4695
  body: JSON.stringify(marshalDisableManagedAlertsRequest(request, this.client.settings)),
4695
- headers: jsonContentHeaders$n,
4696
+ headers: jsonContentHeaders$o,
4696
4697
  method: 'POST',
4697
4698
  path: `/cockpit/v1beta1/disable-managed-alerts`
4698
4699
  });
@@ -4704,7 +4705,7 @@ let API$o = class API extends API$u {
4704
4705
  */
4705
4706
  triggerTestAlert = (request = {}) => this.client.fetch({
4706
4707
  body: JSON.stringify(marshalTriggerTestAlertRequest(request, this.client.settings)),
4707
- headers: jsonContentHeaders$n,
4708
+ headers: jsonContentHeaders$o,
4708
4709
  method: 'POST',
4709
4710
  path: `/cockpit/v1beta1/trigger-test-alert`
4710
4711
  });
@@ -4718,7 +4719,7 @@ let API$o = class API extends API$u {
4718
4719
  */
4719
4720
  createGrafanaUser = request => this.client.fetch({
4720
4721
  body: JSON.stringify(marshalCreateGrafanaUserRequest(request, this.client.settings)),
4721
- headers: jsonContentHeaders$n,
4722
+ headers: jsonContentHeaders$o,
4722
4723
  method: 'POST',
4723
4724
  path: `/cockpit/v1beta1/grafana-users`
4724
4725
  }, unmarshalGrafanaUser);
@@ -4745,7 +4746,7 @@ let API$o = class API extends API$u {
4745
4746
  */
4746
4747
  deleteGrafanaUser = request => this.client.fetch({
4747
4748
  body: JSON.stringify(marshalDeleteGrafanaUserRequest(request, this.client.settings)),
4748
- headers: jsonContentHeaders$n,
4749
+ headers: jsonContentHeaders$o,
4749
4750
  method: 'POST',
4750
4751
  path: `/cockpit/v1beta1/grafana-users/${validatePathParam('grafanaUserId', request.grafanaUserId)}/delete`
4751
4752
  });
@@ -4759,7 +4760,7 @@ let API$o = class API extends API$u {
4759
4760
  */
4760
4761
  resetGrafanaUserPassword = request => this.client.fetch({
4761
4762
  body: JSON.stringify(marshalResetGrafanaUserPasswordRequest(request, this.client.settings)),
4762
- headers: jsonContentHeaders$n,
4763
+ headers: jsonContentHeaders$o,
4763
4764
  method: 'POST',
4764
4765
  path: `/cockpit/v1beta1/grafana-users/${validatePathParam('grafanaUserId', request.grafanaUserId)}/reset-password`
4765
4766
  }, unmarshalGrafanaUser);
@@ -4786,7 +4787,7 @@ let API$o = class API extends API$u {
4786
4787
  */
4787
4788
  selectPlan = request => this.client.fetch({
4788
4789
  body: JSON.stringify(marshalSelectPlanRequest(request, this.client.settings)),
4789
- headers: jsonContentHeaders$n,
4790
+ headers: jsonContentHeaders$o,
4790
4791
  method: 'POST',
4791
4792
  path: `/cockpit/v1beta1/select-plan`
4792
4793
  }, unmarshalSelectPlanResponse);
@@ -4821,15 +4822,15 @@ let API$o = class API extends API$u {
4821
4822
  // This file was automatically generated. DO NOT EDIT.
4822
4823
  // If you have any remark or suggestion do not hesitate to open an issue.
4823
4824
 
4824
- var index_gen$m = /*#__PURE__*/Object.freeze({
4825
+ var index_gen$n = /*#__PURE__*/Object.freeze({
4825
4826
  __proto__: null,
4826
- API: API$o,
4827
+ API: API$p,
4827
4828
  COCKPIT_TRANSIENT_STATUSES: COCKPIT_TRANSIENT_STATUSES
4828
4829
  });
4829
4830
 
4830
- var index$p = /*#__PURE__*/Object.freeze({
4831
+ var index$q = /*#__PURE__*/Object.freeze({
4831
4832
  __proto__: null,
4832
- v1beta1: index_gen$m
4833
+ v1beta1: index_gen$n
4833
4834
  });
4834
4835
 
4835
4836
  // This file was automatically generated. DO NOT EDIT.
@@ -4871,6 +4872,7 @@ const unmarshalTriggerMnqNatsClientConfig$1 = data => {
4871
4872
  return {
4872
4873
  mnqCredentialId: data.mnq_credential_id,
4873
4874
  mnqNamespaceId: data.mnq_namespace_id,
4875
+ mnqNatsAccountId: data.mnq_nats_account_id,
4874
4876
  mnqProjectId: data.mnq_project_id,
4875
4877
  mnqRegion: data.mnq_region,
4876
4878
  subject: data.subject
@@ -5160,12 +5162,12 @@ const marshalCreateTriggerRequest$1 = (request, defaults) => ({
5160
5162
  ...resolveOneOf([{
5161
5163
  param: 'scw_sqs_config',
5162
5164
  value: request.scwSqsConfig ? marshalCreateTriggerRequestMnqSqsClientConfig$1(request.scwSqsConfig) : undefined
5163
- }, {
5164
- param: 'sqs_config',
5165
- value: request.sqsConfig ? marshalCreateTriggerRequestSqsClientConfig$1(request.sqsConfig) : undefined
5166
5165
  }, {
5167
5166
  param: 'scw_nats_config',
5168
5167
  value: request.scwNatsConfig ? marshalCreateTriggerRequestMnqNatsClientConfig$1(request.scwNatsConfig) : undefined
5168
+ }, {
5169
+ param: 'sqs_config',
5170
+ value: request.sqsConfig ? marshalCreateTriggerRequestSqsClientConfig$1(request.sqsConfig) : undefined
5169
5171
  }])
5170
5172
  });
5171
5173
  const marshalUpdateContainerRequest = (request, defaults) => ({
@@ -5207,12 +5209,12 @@ const marshalUpdateTriggerRequest$1 = (request, defaults) => ({
5207
5209
 
5208
5210
  // This file was automatically generated. DO NOT EDIT.
5209
5211
  // If you have any remark or suggestion do not hesitate to open an issue.
5210
- const jsonContentHeaders$m = {
5212
+ const jsonContentHeaders$n = {
5211
5213
  'Content-Type': 'application/json; charset=utf-8'
5212
5214
  };
5213
5215
 
5214
5216
  /** Serverless Containers API. */
5215
- let API$n = class API extends API$u {
5217
+ let API$o = class API extends API$v {
5216
5218
  /** Lists the available regions of the API. */
5217
5219
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
5218
5220
  pageOfListNamespaces = (request = {}) => this.client.fetch({
@@ -5257,7 +5259,7 @@ let API$n = class API extends API$u {
5257
5259
  */
5258
5260
  createNamespace = (request = {}) => this.client.fetch({
5259
5261
  body: JSON.stringify(marshalCreateNamespaceRequest$3(request, this.client.settings)),
5260
- headers: jsonContentHeaders$m,
5262
+ headers: jsonContentHeaders$n,
5261
5263
  method: 'POST',
5262
5264
  path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces`
5263
5265
  }, unmarshalNamespace$3);
@@ -5271,7 +5273,7 @@ let API$n = class API extends API$u {
5271
5273
  */
5272
5274
  updateNamespace = request => this.client.fetch({
5273
5275
  body: JSON.stringify(marshalUpdateNamespaceRequest$3(request, this.client.settings)),
5274
- headers: jsonContentHeaders$m,
5276
+ headers: jsonContentHeaders$n,
5275
5277
  method: 'PATCH',
5276
5278
  path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces/${validatePathParam('namespaceId', request.namespaceId)}`
5277
5279
  }, unmarshalNamespace$3);
@@ -5329,7 +5331,7 @@ let API$n = class API extends API$u {
5329
5331
  */
5330
5332
  createContainer = request => this.client.fetch({
5331
5333
  body: JSON.stringify(marshalCreateContainerRequest(request, this.client.settings)),
5332
- headers: jsonContentHeaders$m,
5334
+ headers: jsonContentHeaders$n,
5333
5335
  method: 'POST',
5334
5336
  path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/containers`
5335
5337
  }, unmarshalContainer);
@@ -5343,7 +5345,7 @@ let API$n = class API extends API$u {
5343
5345
  */
5344
5346
  updateContainer = request => this.client.fetch({
5345
5347
  body: JSON.stringify(marshalUpdateContainerRequest(request, this.client.settings)),
5346
- headers: jsonContentHeaders$m,
5348
+ headers: jsonContentHeaders$n,
5347
5349
  method: 'PATCH',
5348
5350
  path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/containers/${validatePathParam('containerId', request.containerId)}`
5349
5351
  }, unmarshalContainer);
@@ -5367,7 +5369,7 @@ let API$n = class API extends API$u {
5367
5369
  */
5368
5370
  deployContainer = request => this.client.fetch({
5369
5371
  body: '{}',
5370
- headers: jsonContentHeaders$m,
5372
+ headers: jsonContentHeaders$n,
5371
5373
  method: 'POST',
5372
5374
  path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/containers/${validatePathParam('containerId', request.containerId)}/deploy`
5373
5375
  }, unmarshalContainer);
@@ -5413,7 +5415,7 @@ let API$n = class API extends API$u {
5413
5415
  */
5414
5416
  createCron = request => this.client.fetch({
5415
5417
  body: JSON.stringify(marshalCreateCronRequest$1(request, this.client.settings)),
5416
- headers: jsonContentHeaders$m,
5418
+ headers: jsonContentHeaders$n,
5417
5419
  method: 'POST',
5418
5420
  path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/crons`
5419
5421
  }, unmarshalCron$1);
@@ -5426,7 +5428,7 @@ let API$n = class API extends API$u {
5426
5428
  */
5427
5429
  updateCron = request => this.client.fetch({
5428
5430
  body: JSON.stringify(marshalUpdateCronRequest$1(request, this.client.settings)),
5429
- headers: jsonContentHeaders$m,
5431
+ headers: jsonContentHeaders$n,
5430
5432
  method: 'PATCH',
5431
5433
  path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/crons/${validatePathParam('cronId', request.cronId)}`
5432
5434
  }, unmarshalCron$1);
@@ -5500,7 +5502,7 @@ let API$n = class API extends API$u {
5500
5502
  */
5501
5503
  createDomain = request => this.client.fetch({
5502
5504
  body: JSON.stringify(marshalCreateDomainRequest$2(request, this.client.settings)),
5503
- headers: jsonContentHeaders$m,
5505
+ headers: jsonContentHeaders$n,
5504
5506
  method: 'POST',
5505
5507
  path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/domains`
5506
5508
  }, unmarshalDomain$3);
@@ -5542,7 +5544,7 @@ let API$n = class API extends API$u {
5542
5544
  */
5543
5545
  createToken = (request = {}) => this.client.fetch({
5544
5546
  body: JSON.stringify(marshalCreateTokenRequest$1(request, this.client.settings)),
5545
- headers: jsonContentHeaders$m,
5547
+ headers: jsonContentHeaders$n,
5546
5548
  method: 'POST',
5547
5549
  path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/tokens`
5548
5550
  }, unmarshalToken$1);
@@ -5600,7 +5602,7 @@ let API$n = class API extends API$u {
5600
5602
  */
5601
5603
  createTrigger = request => this.client.fetch({
5602
5604
  body: JSON.stringify(marshalCreateTriggerRequest$1(request, this.client.settings)),
5603
- headers: jsonContentHeaders$m,
5605
+ headers: jsonContentHeaders$n,
5604
5606
  method: 'POST',
5605
5607
  path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/triggers`
5606
5608
  }, unmarshalTrigger$1);
@@ -5657,7 +5659,7 @@ let API$n = class API extends API$u {
5657
5659
  */
5658
5660
  updateTrigger = request => this.client.fetch({
5659
5661
  body: JSON.stringify(marshalUpdateTriggerRequest$1(request, this.client.settings)),
5660
- headers: jsonContentHeaders$m,
5662
+ headers: jsonContentHeaders$n,
5661
5663
  method: 'PATCH',
5662
5664
  path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/triggers/${validatePathParam('triggerId', request.triggerId)}`
5663
5665
  }, unmarshalTrigger$1);
@@ -5677,20 +5679,72 @@ let API$n = class API extends API$u {
5677
5679
  // This file was automatically generated. DO NOT EDIT.
5678
5680
  // If you have any remark or suggestion do not hesitate to open an issue.
5679
5681
 
5680
- var index_gen$l = /*#__PURE__*/Object.freeze({
5682
+ const CreateTriggerRequest$1 = {
5683
+ description: {
5684
+ maxLength: 255
5685
+ },
5686
+ name: {
5687
+ maxLength: 50,
5688
+ minLength: 1
5689
+ }
5690
+ };
5691
+ const CreateTriggerRequestMnqNatsClientConfig$1 = {
5692
+ mnqRegion: {
5693
+ maxLength: 20,
5694
+ minLength: 1
5695
+ },
5696
+ subject: {
5697
+ maxLength: 100,
5698
+ minLength: 1,
5699
+ pattern: /^[^\s]+$/
5700
+ }
5701
+ };
5702
+ const CreateTriggerRequestMnqSqsClientConfig$1 = {
5703
+ mnqRegion: {
5704
+ maxLength: 20,
5705
+ minLength: 1
5706
+ },
5707
+ queue: {
5708
+ maxLength: 100,
5709
+ minLength: 1
5710
+ }
5711
+ };
5712
+ const UpdateTriggerRequest$1 = {
5713
+ description: {
5714
+ maxLength: 255
5715
+ },
5716
+ name: {
5717
+ maxLength: 50,
5718
+ minLength: 1
5719
+ }
5720
+ };
5721
+
5722
+ var validationRules_gen$9 = /*#__PURE__*/Object.freeze({
5681
5723
  __proto__: null,
5682
- API: API$n,
5724
+ CreateTriggerRequest: CreateTriggerRequest$1,
5725
+ CreateTriggerRequestMnqNatsClientConfig: CreateTriggerRequestMnqNatsClientConfig$1,
5726
+ CreateTriggerRequestMnqSqsClientConfig: CreateTriggerRequestMnqSqsClientConfig$1,
5727
+ UpdateTriggerRequest: UpdateTriggerRequest$1
5728
+ });
5729
+
5730
+ // This file was automatically generated. DO NOT EDIT.
5731
+ // If you have any remark or suggestion do not hesitate to open an issue.
5732
+
5733
+ var index_gen$m = /*#__PURE__*/Object.freeze({
5734
+ __proto__: null,
5735
+ API: API$o,
5683
5736
  CONTAINER_TRANSIENT_STATUSES: CONTAINER_TRANSIENT_STATUSES,
5684
5737
  CRON_TRANSIENT_STATUSES: CRON_TRANSIENT_STATUSES$1,
5685
5738
  DOMAIN_TRANSIENT_STATUSES: DOMAIN_TRANSIENT_STATUSES$3,
5686
5739
  NAMESPACE_TRANSIENT_STATUSES: NAMESPACE_TRANSIENT_STATUSES$2,
5687
5740
  TOKEN_TRANSIENT_STATUSES: TOKEN_TRANSIENT_STATUSES$1,
5688
- TRIGGER_TRANSIENT_STATUSES: TRIGGER_TRANSIENT_STATUSES$1
5741
+ TRIGGER_TRANSIENT_STATUSES: TRIGGER_TRANSIENT_STATUSES$1,
5742
+ ValidationRules: validationRules_gen$9
5689
5743
  });
5690
5744
 
5691
- var index$o = /*#__PURE__*/Object.freeze({
5745
+ var index$p = /*#__PURE__*/Object.freeze({
5692
5746
  __proto__: null,
5693
- v1beta1: index_gen$l
5747
+ v1beta1: index_gen$m
5694
5748
  });
5695
5749
 
5696
5750
  // This file was automatically generated. DO NOT EDIT.
@@ -6343,12 +6397,12 @@ const marshalUpgradeInstanceRequest$1 = (request, defaults) => ({
6343
6397
 
6344
6398
  // This file was automatically generated. DO NOT EDIT.
6345
6399
  // If you have any remark or suggestion do not hesitate to open an issue.
6346
- const jsonContentHeaders$l = {
6400
+ const jsonContentHeaders$m = {
6347
6401
  'Content-Type': 'application/json; charset=utf-8'
6348
6402
  };
6349
6403
 
6350
6404
  /** Managed Document Databases API. */
6351
- let API$m = class API extends API$u {
6405
+ let API$n = class API extends API$v {
6352
6406
  /** Lists the available regions of the API. */
6353
6407
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
6354
6408
  pageOfListDatabaseEngines = (request = {}) => this.client.fetch({
@@ -6392,7 +6446,7 @@ let API$m = class API extends API$u {
6392
6446
  */
6393
6447
  upgradeInstance = request => this.client.fetch({
6394
6448
  body: JSON.stringify(marshalUpgradeInstanceRequest$1(request, this.client.settings)),
6395
- headers: jsonContentHeaders$l,
6449
+ headers: jsonContentHeaders$m,
6396
6450
  method: 'POST',
6397
6451
  path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/upgrade`
6398
6452
  }, unmarshalInstance$2);
@@ -6450,7 +6504,7 @@ let API$m = class API extends API$u {
6450
6504
  */
6451
6505
  createInstance = request => this.client.fetch({
6452
6506
  body: JSON.stringify(marshalCreateInstanceRequest$1(request, this.client.settings)),
6453
- headers: jsonContentHeaders$l,
6507
+ headers: jsonContentHeaders$m,
6454
6508
  method: 'POST',
6455
6509
  path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances`
6456
6510
  }, unmarshalInstance$2);
@@ -6464,7 +6518,7 @@ let API$m = class API extends API$u {
6464
6518
  */
6465
6519
  updateInstance = request => this.client.fetch({
6466
6520
  body: JSON.stringify(marshalUpdateInstanceRequest$1(request, this.client.settings)),
6467
- headers: jsonContentHeaders$l,
6521
+ headers: jsonContentHeaders$m,
6468
6522
  method: 'PATCH',
6469
6523
  path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}`
6470
6524
  }, unmarshalInstance$2);
@@ -6495,7 +6549,7 @@ let API$m = class API extends API$u {
6495
6549
  */
6496
6550
  cloneInstance = request => this.client.fetch({
6497
6551
  body: JSON.stringify(marshalCloneInstanceRequest$1(request, this.client.settings)),
6498
- headers: jsonContentHeaders$l,
6552
+ headers: jsonContentHeaders$m,
6499
6553
  method: 'POST',
6500
6554
  path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/clone`
6501
6555
  }, unmarshalInstance$2);
@@ -6510,7 +6564,7 @@ let API$m = class API extends API$u {
6510
6564
  */
6511
6565
  restartInstance = request => this.client.fetch({
6512
6566
  body: '{}',
6513
- headers: jsonContentHeaders$l,
6567
+ headers: jsonContentHeaders$m,
6514
6568
  method: 'POST',
6515
6569
  path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/restart`
6516
6570
  }, unmarshalInstance$2);
@@ -6541,7 +6595,7 @@ let API$m = class API extends API$u {
6541
6595
  */
6542
6596
  renewInstanceCertificate = request => this.client.fetch({
6543
6597
  body: '{}',
6544
- headers: jsonContentHeaders$l,
6598
+ headers: jsonContentHeaders$m,
6545
6599
  method: 'POST',
6546
6600
  path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/renew-certificate`
6547
6601
  });
@@ -6570,7 +6624,7 @@ let API$m = class API extends API$u {
6570
6624
  */
6571
6625
  createReadReplica = request => this.client.fetch({
6572
6626
  body: JSON.stringify(marshalCreateReadReplicaRequest$1(request, this.client.settings)),
6573
- headers: jsonContentHeaders$l,
6627
+ headers: jsonContentHeaders$m,
6574
6628
  method: 'POST',
6575
6629
  path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/read-replicas`
6576
6630
  }, unmarshalReadReplica$1);
@@ -6622,7 +6676,7 @@ let API$m = class API extends API$u {
6622
6676
  */
6623
6677
  resetReadReplica = request => this.client.fetch({
6624
6678
  body: '{}',
6625
- headers: jsonContentHeaders$l,
6679
+ headers: jsonContentHeaders$m,
6626
6680
  method: 'POST',
6627
6681
  path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/read-replicas/${validatePathParam('readReplicaId', request.readReplicaId)}/reset`
6628
6682
  }, unmarshalReadReplica$1);
@@ -6636,7 +6690,7 @@ let API$m = class API extends API$u {
6636
6690
  */
6637
6691
  promoteReadReplica = request => this.client.fetch({
6638
6692
  body: '{}',
6639
- headers: jsonContentHeaders$l,
6693
+ headers: jsonContentHeaders$m,
6640
6694
  method: 'POST',
6641
6695
  path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/read-replicas/${validatePathParam('readReplicaId', request.readReplicaId)}/promote`
6642
6696
  }, unmarshalInstance$2);
@@ -6651,7 +6705,7 @@ let API$m = class API extends API$u {
6651
6705
  */
6652
6706
  createReadReplicaEndpoint = request => this.client.fetch({
6653
6707
  body: JSON.stringify(marshalCreateReadReplicaEndpointRequest$1(request, this.client.settings)),
6654
- headers: jsonContentHeaders$l,
6708
+ headers: jsonContentHeaders$m,
6655
6709
  method: 'POST',
6656
6710
  path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/read-replicas/${validatePathParam('readReplicaId', request.readReplicaId)}/endpoints`
6657
6711
  }, unmarshalReadReplica$1);
@@ -6703,7 +6757,7 @@ let API$m = class API extends API$u {
6703
6757
  */
6704
6758
  purgeInstanceLogs = request => this.client.fetch({
6705
6759
  body: JSON.stringify(marshalPurgeInstanceLogsRequest$1(request, this.client.settings)),
6706
- headers: jsonContentHeaders$l,
6760
+ headers: jsonContentHeaders$m,
6707
6761
  method: 'POST',
6708
6762
  path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/purge-logs`
6709
6763
  });
@@ -6731,7 +6785,7 @@ let API$m = class API extends API$u {
6731
6785
  */
6732
6786
  addInstanceSettings = request => this.client.fetch({
6733
6787
  body: JSON.stringify(marshalAddInstanceSettingsRequest$1(request, this.client.settings)),
6734
- headers: jsonContentHeaders$l,
6788
+ headers: jsonContentHeaders$m,
6735
6789
  method: 'POST',
6736
6790
  path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/settings`
6737
6791
  }, unmarshalAddInstanceSettingsResponse$1);
@@ -6746,7 +6800,7 @@ let API$m = class API extends API$u {
6746
6800
  */
6747
6801
  deleteInstanceSettings = request => this.client.fetch({
6748
6802
  body: JSON.stringify(marshalDeleteInstanceSettingsRequest$1(request, this.client.settings)),
6749
- headers: jsonContentHeaders$l,
6803
+ headers: jsonContentHeaders$m,
6750
6804
  method: 'DELETE',
6751
6805
  path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/settings`
6752
6806
  }, unmarshalDeleteInstanceSettingsResponse$1);
@@ -6761,7 +6815,7 @@ let API$m = class API extends API$u {
6761
6815
  */
6762
6816
  setInstanceSettings = request => this.client.fetch({
6763
6817
  body: JSON.stringify(marshalSetInstanceSettingsRequest$1(request, this.client.settings)),
6764
- headers: jsonContentHeaders$l,
6818
+ headers: jsonContentHeaders$m,
6765
6819
  method: 'PUT',
6766
6820
  path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/settings`
6767
6821
  }, unmarshalSetInstanceSettingsResponse$1);
@@ -6791,7 +6845,7 @@ let API$m = class API extends API$u {
6791
6845
  */
6792
6846
  addInstanceACLRules = request => this.client.fetch({
6793
6847
  body: JSON.stringify(marshalAddInstanceACLRulesRequest$1(request, this.client.settings)),
6794
- headers: jsonContentHeaders$l,
6848
+ headers: jsonContentHeaders$m,
6795
6849
  method: 'POST',
6796
6850
  path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/acls`
6797
6851
  }, unmarshalAddInstanceACLRulesResponse$1);
@@ -6805,7 +6859,7 @@ let API$m = class API extends API$u {
6805
6859
  */
6806
6860
  setInstanceACLRules = request => this.client.fetch({
6807
6861
  body: JSON.stringify(marshalSetInstanceACLRulesRequest$1(request, this.client.settings)),
6808
- headers: jsonContentHeaders$l,
6862
+ headers: jsonContentHeaders$m,
6809
6863
  method: 'PUT',
6810
6864
  path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/acls`
6811
6865
  }, unmarshalSetInstanceACLRulesResponse$1);
@@ -6819,7 +6873,7 @@ let API$m = class API extends API$u {
6819
6873
  */
6820
6874
  deleteInstanceACLRules = request => this.client.fetch({
6821
6875
  body: JSON.stringify(marshalDeleteInstanceACLRulesRequest$1(request, this.client.settings)),
6822
- headers: jsonContentHeaders$l,
6876
+ headers: jsonContentHeaders$m,
6823
6877
  method: 'DELETE',
6824
6878
  path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/acls`
6825
6879
  }, unmarshalDeleteInstanceACLRulesResponse$1);
@@ -6850,7 +6904,7 @@ let API$m = class API extends API$u {
6850
6904
  */
6851
6905
  createUser = request => this.client.fetch({
6852
6906
  body: JSON.stringify(marshalCreateUserRequest$2(request, this.client.settings)),
6853
- headers: jsonContentHeaders$l,
6907
+ headers: jsonContentHeaders$m,
6854
6908
  method: 'POST',
6855
6909
  path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/users`
6856
6910
  }, unmarshalUser$2);
@@ -6865,7 +6919,7 @@ let API$m = class API extends API$u {
6865
6919
  */
6866
6920
  updateUser = request => this.client.fetch({
6867
6921
  body: JSON.stringify(marshalUpdateUserRequest$1(request, this.client.settings)),
6868
- headers: jsonContentHeaders$l,
6922
+ headers: jsonContentHeaders$m,
6869
6923
  method: 'PATCH',
6870
6924
  path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/users/${validatePathParam('name', request.name)}`
6871
6925
  }, unmarshalUser$2);
@@ -6908,7 +6962,7 @@ let API$m = class API extends API$u {
6908
6962
  */
6909
6963
  createDatabase = request => this.client.fetch({
6910
6964
  body: JSON.stringify(marshalCreateDatabaseRequest$1(request, this.client.settings)),
6911
- headers: jsonContentHeaders$l,
6965
+ headers: jsonContentHeaders$m,
6912
6966
  method: 'POST',
6913
6967
  path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/databases`
6914
6968
  }, unmarshalDatabase$1);
@@ -6952,7 +7006,7 @@ let API$m = class API extends API$u {
6952
7006
  */
6953
7007
  setPrivilege = request => this.client.fetch({
6954
7008
  body: JSON.stringify(marshalSetPrivilegeRequest$1(request, this.client.settings)),
6955
- headers: jsonContentHeaders$l,
7009
+ headers: jsonContentHeaders$m,
6956
7010
  method: 'PUT',
6957
7011
  path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/privileges`
6958
7012
  }, unmarshalPrivilege$1);
@@ -7005,7 +7059,7 @@ let API$m = class API extends API$u {
7005
7059
  */
7006
7060
  createSnapshot = request => this.client.fetch({
7007
7061
  body: JSON.stringify(marshalCreateSnapshotRequest$2(request, this.client.settings)),
7008
- headers: jsonContentHeaders$l,
7062
+ headers: jsonContentHeaders$m,
7009
7063
  method: 'POST',
7010
7064
  path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/snapshots`
7011
7065
  }, unmarshalSnapshot$2);
@@ -7020,7 +7074,7 @@ let API$m = class API extends API$u {
7020
7074
  */
7021
7075
  updateSnapshot = request => this.client.fetch({
7022
7076
  body: JSON.stringify(marshalUpdateSnapshotRequest$1(request, this.client.settings)),
7023
- headers: jsonContentHeaders$l,
7077
+ headers: jsonContentHeaders$m,
7024
7078
  method: 'PATCH',
7025
7079
  path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/snapshots/${validatePathParam('snapshotId', request.snapshotId)}`
7026
7080
  }, unmarshalSnapshot$2);
@@ -7053,7 +7107,7 @@ let API$m = class API extends API$u {
7053
7107
  */
7054
7108
  createInstanceFromSnapshot = request => this.client.fetch({
7055
7109
  body: JSON.stringify(marshalCreateInstanceFromSnapshotRequest$1(request, this.client.settings)),
7056
- headers: jsonContentHeaders$l,
7110
+ headers: jsonContentHeaders$m,
7057
7111
  method: 'POST',
7058
7112
  path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/snapshots/${validatePathParam('snapshotId', request.snapshotId)}/create-instance`
7059
7113
  }, unmarshalInstance$2);
@@ -7068,7 +7122,7 @@ let API$m = class API extends API$u {
7068
7122
  */
7069
7123
  createEndpoint = request => this.client.fetch({
7070
7124
  body: JSON.stringify(marshalCreateEndpointRequest$1(request, this.client.settings)),
7071
- headers: jsonContentHeaders$l,
7125
+ headers: jsonContentHeaders$m,
7072
7126
  method: 'POST',
7073
7127
  path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/endpoints`
7074
7128
  }, unmarshalEndpoint$2);
@@ -7109,7 +7163,7 @@ let API$m = class API extends API$u {
7109
7163
  */
7110
7164
  migrateEndpoint = request => this.client.fetch({
7111
7165
  body: JSON.stringify(marshalMigrateEndpointRequest$1(request, this.client.settings)),
7112
- headers: jsonContentHeaders$l,
7166
+ headers: jsonContentHeaders$m,
7113
7167
  method: 'POST',
7114
7168
  path: `/document-db/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/endpoints/${validatePathParam('endpointId', request.endpointId)}/migrate`
7115
7169
  }, unmarshalEndpoint$2);
@@ -7124,7 +7178,7 @@ const UpdateInstanceRequest$1 = {
7124
7178
  }
7125
7179
  };
7126
7180
 
7127
- var validationRules_gen$6 = /*#__PURE__*/Object.freeze({
7181
+ var validationRules_gen$8 = /*#__PURE__*/Object.freeze({
7128
7182
  __proto__: null,
7129
7183
  UpdateInstanceRequest: UpdateInstanceRequest$1
7130
7184
  });
@@ -7132,20 +7186,20 @@ var validationRules_gen$6 = /*#__PURE__*/Object.freeze({
7132
7186
  // This file was automatically generated. DO NOT EDIT.
7133
7187
  // If you have any remark or suggestion do not hesitate to open an issue.
7134
7188
 
7135
- var index_gen$k = /*#__PURE__*/Object.freeze({
7189
+ var index_gen$l = /*#__PURE__*/Object.freeze({
7136
7190
  __proto__: null,
7137
- API: API$m,
7191
+ API: API$n,
7138
7192
  INSTANCE_LOG_TRANSIENT_STATUSES: INSTANCE_LOG_TRANSIENT_STATUSES$1,
7139
7193
  INSTANCE_TRANSIENT_STATUSES: INSTANCE_TRANSIENT_STATUSES$2,
7140
7194
  MAINTENANCE_TRANSIENT_STATUSES: MAINTENANCE_TRANSIENT_STATUSES$1,
7141
7195
  READ_REPLICA_TRANSIENT_STATUSES: READ_REPLICA_TRANSIENT_STATUSES$1,
7142
7196
  SNAPSHOT_TRANSIENT_STATUSES: SNAPSHOT_TRANSIENT_STATUSES$2,
7143
- ValidationRules: validationRules_gen$6
7197
+ ValidationRules: validationRules_gen$8
7144
7198
  });
7145
7199
 
7146
- var index$n = /*#__PURE__*/Object.freeze({
7200
+ var index$o = /*#__PURE__*/Object.freeze({
7147
7201
  __proto__: null,
7148
- v1beta1: index_gen$k
7202
+ v1beta1: index_gen$l
7149
7203
  });
7150
7204
 
7151
7205
  // This file was automatically generated. DO NOT EDIT.
@@ -8344,7 +8398,7 @@ const marshalUpdateDNSZoneRequest = (request, defaults) => ({
8344
8398
 
8345
8399
  // This file was automatically generated. DO NOT EDIT.
8346
8400
  // If you have any remark or suggestion do not hesitate to open an issue.
8347
- const jsonContentHeaders$k = {
8401
+ const jsonContentHeaders$l = {
8348
8402
  'Content-Type': 'application/json; charset=utf-8'
8349
8403
  };
8350
8404
 
@@ -8354,7 +8408,7 @@ const jsonContentHeaders$k = {
8354
8408
  * Domains and DNS API. Manage your domains, DNS zones and records with the
8355
8409
  * Domains and DNS API.
8356
8410
  */
8357
- let API$l = class API extends API$u {
8411
+ let API$m = class API extends API$v {
8358
8412
  pageOfListDNSZones = request => this.client.fetch({
8359
8413
  method: 'GET',
8360
8414
  path: `/domain/v2beta1/dns-zones`,
@@ -8379,7 +8433,7 @@ let API$l = class API extends API$u {
8379
8433
  */
8380
8434
  createDNSZone = request => this.client.fetch({
8381
8435
  body: JSON.stringify(marshalCreateDNSZoneRequest(request, this.client.settings)),
8382
- headers: jsonContentHeaders$k,
8436
+ headers: jsonContentHeaders$l,
8383
8437
  method: 'POST',
8384
8438
  path: `/domain/v2beta1/dns-zones`
8385
8439
  }, unmarshalDNSZone);
@@ -8392,7 +8446,7 @@ let API$l = class API extends API$u {
8392
8446
  */
8393
8447
  updateDNSZone = request => this.client.fetch({
8394
8448
  body: JSON.stringify(marshalUpdateDNSZoneRequest(request, this.client.settings)),
8395
- headers: jsonContentHeaders$k,
8449
+ headers: jsonContentHeaders$l,
8396
8450
  method: 'PATCH',
8397
8451
  path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}`
8398
8452
  }, unmarshalDNSZone);
@@ -8406,7 +8460,7 @@ let API$l = class API extends API$u {
8406
8460
  */
8407
8461
  cloneDNSZone = request => this.client.fetch({
8408
8462
  body: JSON.stringify(marshalCloneDNSZoneRequest(request, this.client.settings)),
8409
- headers: jsonContentHeaders$k,
8463
+ headers: jsonContentHeaders$l,
8410
8464
  method: 'POST',
8411
8465
  path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}/clone`
8412
8466
  }, unmarshalDNSZone);
@@ -8459,7 +8513,7 @@ let API$l = class API extends API$u {
8459
8513
  */
8460
8514
  updateDNSZoneRecords = request => this.client.fetch({
8461
8515
  body: JSON.stringify(marshalUpdateDNSZoneRecordsRequest(request, this.client.settings)),
8462
- headers: jsonContentHeaders$k,
8516
+ headers: jsonContentHeaders$l,
8463
8517
  method: 'PATCH',
8464
8518
  path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}/records`
8465
8519
  }, unmarshalUpdateDNSZoneRecordsResponse);
@@ -8486,7 +8540,7 @@ let API$l = class API extends API$u {
8486
8540
  */
8487
8541
  updateDNSZoneNameservers = request => this.client.fetch({
8488
8542
  body: JSON.stringify(marshalUpdateDNSZoneNameserversRequest(request, this.client.settings)),
8489
- headers: jsonContentHeaders$k,
8543
+ headers: jsonContentHeaders$l,
8490
8544
  method: 'PUT',
8491
8545
  path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}/nameservers`
8492
8546
  }, unmarshalUpdateDNSZoneNameserversResponse);
@@ -8526,7 +8580,7 @@ let API$l = class API extends API$u {
8526
8580
  */
8527
8581
  importRawDNSZone = request => this.client.fetch({
8528
8582
  body: JSON.stringify(marshalImportRawDNSZoneRequest(request, this.client.settings)),
8529
- headers: jsonContentHeaders$k,
8583
+ headers: jsonContentHeaders$l,
8530
8584
  method: 'POST',
8531
8585
  path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}/raw`
8532
8586
  }, unmarshalImportRawDNSZoneResponse);
@@ -8540,7 +8594,7 @@ let API$l = class API extends API$u {
8540
8594
  */
8541
8595
  importProviderDNSZone = request => this.client.fetch({
8542
8596
  body: JSON.stringify(marshalImportProviderDNSZoneRequest(request, this.client.settings)),
8543
- headers: jsonContentHeaders$k,
8597
+ headers: jsonContentHeaders$l,
8544
8598
  method: 'POST',
8545
8599
  path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}/import-provider`
8546
8600
  }, unmarshalImportProviderDNSZoneResponse);
@@ -8555,7 +8609,7 @@ let API$l = class API extends API$u {
8555
8609
  */
8556
8610
  refreshDNSZone = request => this.client.fetch({
8557
8611
  body: JSON.stringify(marshalRefreshDNSZoneRequest(request, this.client.settings)),
8558
- headers: jsonContentHeaders$k,
8612
+ headers: jsonContentHeaders$l,
8559
8613
  method: 'POST',
8560
8614
  path: `/domain/v2beta1/dns-zones/${validatePathParam('dnsZone', request.dnsZone)}/refresh`
8561
8615
  }, unmarshalRefreshDNSZoneResponse);
@@ -8610,7 +8664,7 @@ let API$l = class API extends API$u {
8610
8664
  */
8611
8665
  restoreDNSZoneVersion = request => this.client.fetch({
8612
8666
  body: '{}',
8613
- headers: jsonContentHeaders$k,
8667
+ headers: jsonContentHeaders$l,
8614
8668
  method: 'POST',
8615
8669
  path: `/domain/v2beta1/dns-zones/version/${validatePathParam('dnsZoneVersionId', request.dnsZoneVersionId)}/restore`
8616
8670
  }, unmarshalRestoreDNSZoneVersionResponse);
@@ -8645,7 +8699,7 @@ let API$l = class API extends API$u {
8645
8699
  */
8646
8700
  createSSLCertificate = request => this.client.fetch({
8647
8701
  body: JSON.stringify(marshalCreateSSLCertificateRequest(request, this.client.settings)),
8648
- headers: jsonContentHeaders$k,
8702
+ headers: jsonContentHeaders$l,
8649
8703
  method: 'POST',
8650
8704
  path: `/domain/v2beta1/ssl-certificates`
8651
8705
  }, unmarshalSSLCertificate);
@@ -8706,7 +8760,7 @@ let API$l = class API extends API$u {
8706
8760
  *
8707
8761
  * Domains and DNS - Registrar API. Manage your domains and contacts.
8708
8762
  */
8709
- class RegistrarAPI extends API$u {
8763
+ class RegistrarAPI extends API$v {
8710
8764
  pageOfListTasks = (request = {}) => this.client.fetch({
8711
8765
  method: 'GET',
8712
8766
  path: `/domain/v2beta1/tasks`,
@@ -8731,7 +8785,7 @@ class RegistrarAPI extends API$u {
8731
8785
  */
8732
8786
  buyDomains = request => this.client.fetch({
8733
8787
  body: JSON.stringify(marshalRegistrarApiBuyDomainsRequest(request, this.client.settings)),
8734
- headers: jsonContentHeaders$k,
8788
+ headers: jsonContentHeaders$l,
8735
8789
  method: 'POST',
8736
8790
  path: `/domain/v2beta1/buy-domains`
8737
8791
  }, unmarshalOrderResponse);
@@ -8744,7 +8798,7 @@ class RegistrarAPI extends API$u {
8744
8798
  */
8745
8799
  renewDomains = request => this.client.fetch({
8746
8800
  body: JSON.stringify(marshalRegistrarApiRenewDomainsRequest(request, this.client.settings)),
8747
- headers: jsonContentHeaders$k,
8801
+ headers: jsonContentHeaders$l,
8748
8802
  method: 'POST',
8749
8803
  path: `/domain/v2beta1/renew-domains`
8750
8804
  }, unmarshalOrderResponse);
@@ -8758,7 +8812,7 @@ class RegistrarAPI extends API$u {
8758
8812
  */
8759
8813
  transferInDomain = request => this.client.fetch({
8760
8814
  body: JSON.stringify(marshalRegistrarApiTransferInDomainRequest(request, this.client.settings)),
8761
- headers: jsonContentHeaders$k,
8815
+ headers: jsonContentHeaders$l,
8762
8816
  method: 'POST',
8763
8817
  path: `/domain/v2beta1/domains/transfer-domains`
8764
8818
  }, unmarshalOrderResponse);
@@ -8778,7 +8832,7 @@ class RegistrarAPI extends API$u {
8778
8832
  */
8779
8833
  tradeDomain = request => this.client.fetch({
8780
8834
  body: JSON.stringify(marshalRegistrarApiTradeDomainRequest(request, this.client.settings)),
8781
- headers: jsonContentHeaders$k,
8835
+ headers: jsonContentHeaders$l,
8782
8836
  method: 'POST',
8783
8837
  path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/trade`
8784
8838
  }, unmarshalOrderResponse);
@@ -8793,7 +8847,7 @@ class RegistrarAPI extends API$u {
8793
8847
  */
8794
8848
  registerExternalDomain = request => this.client.fetch({
8795
8849
  body: JSON.stringify(marshalRegistrarApiRegisterExternalDomainRequest(request, this.client.settings)),
8796
- headers: jsonContentHeaders$k,
8850
+ headers: jsonContentHeaders$l,
8797
8851
  method: 'POST',
8798
8852
  path: `/domain/v2beta1/external-domains`
8799
8853
  }, unmarshalRegisterExternalDomainResponse);
@@ -8821,7 +8875,7 @@ class RegistrarAPI extends API$u {
8821
8875
  */
8822
8876
  checkContactsCompatibility = (request = {}) => this.client.fetch({
8823
8877
  body: JSON.stringify(marshalRegistrarApiCheckContactsCompatibilityRequest(request, this.client.settings)),
8824
- headers: jsonContentHeaders$k,
8878
+ headers: jsonContentHeaders$l,
8825
8879
  method: 'POST',
8826
8880
  path: `/domain/v2beta1/check-contacts-compatibility`
8827
8881
  }, unmarshalCheckContactsCompatibilityResponse);
@@ -8860,7 +8914,7 @@ class RegistrarAPI extends API$u {
8860
8914
  */
8861
8915
  updateContact = request => this.client.fetch({
8862
8916
  body: JSON.stringify(marshalRegistrarApiUpdateContactRequest(request, this.client.settings)),
8863
- headers: jsonContentHeaders$k,
8917
+ headers: jsonContentHeaders$l,
8864
8918
  method: 'PATCH',
8865
8919
  path: `/domain/v2beta1/contacts/${validatePathParam('contactId', request.contactId)}`
8866
8920
  }, unmarshalContact);
@@ -8925,7 +8979,7 @@ class RegistrarAPI extends API$u {
8925
8979
  */
8926
8980
  updateDomain = request => this.client.fetch({
8927
8981
  body: JSON.stringify(marshalRegistrarApiUpdateDomainRequest(request, this.client.settings)),
8928
- headers: jsonContentHeaders$k,
8982
+ headers: jsonContentHeaders$l,
8929
8983
  method: 'PATCH',
8930
8984
  path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}`
8931
8985
  }, unmarshalDomain$2);
@@ -8940,7 +8994,7 @@ class RegistrarAPI extends API$u {
8940
8994
  */
8941
8995
  lockDomainTransfer = request => this.client.fetch({
8942
8996
  body: '{}',
8943
- headers: jsonContentHeaders$k,
8997
+ headers: jsonContentHeaders$l,
8944
8998
  method: 'POST',
8945
8999
  path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/lock-transfer`
8946
9000
  }, unmarshalDomain$2);
@@ -8955,7 +9009,7 @@ class RegistrarAPI extends API$u {
8955
9009
  */
8956
9010
  unlockDomainTransfer = request => this.client.fetch({
8957
9011
  body: '{}',
8958
- headers: jsonContentHeaders$k,
9012
+ headers: jsonContentHeaders$l,
8959
9013
  method: 'POST',
8960
9014
  path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/unlock-transfer`
8961
9015
  }, unmarshalDomain$2);
@@ -8970,7 +9024,7 @@ class RegistrarAPI extends API$u {
8970
9024
  */
8971
9025
  enableDomainAutoRenew = request => this.client.fetch({
8972
9026
  body: '{}',
8973
- headers: jsonContentHeaders$k,
9027
+ headers: jsonContentHeaders$l,
8974
9028
  method: 'POST',
8975
9029
  path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/enable-auto-renew`
8976
9030
  }, unmarshalDomain$2);
@@ -8985,7 +9039,7 @@ class RegistrarAPI extends API$u {
8985
9039
  */
8986
9040
  disableDomainAutoRenew = request => this.client.fetch({
8987
9041
  body: '{}',
8988
- headers: jsonContentHeaders$k,
9042
+ headers: jsonContentHeaders$l,
8989
9043
  method: 'POST',
8990
9044
  path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/disable-auto-renew`
8991
9045
  }, unmarshalDomain$2);
@@ -9014,7 +9068,7 @@ class RegistrarAPI extends API$u {
9014
9068
  */
9015
9069
  enableDomainDNSSEC = request => this.client.fetch({
9016
9070
  body: JSON.stringify(marshalRegistrarApiEnableDomainDNSSECRequest(request, this.client.settings)),
9017
- headers: jsonContentHeaders$k,
9071
+ headers: jsonContentHeaders$l,
9018
9072
  method: 'POST',
9019
9073
  path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/enable-dnssec`
9020
9074
  }, unmarshalDomain$2);
@@ -9027,7 +9081,7 @@ class RegistrarAPI extends API$u {
9027
9081
  */
9028
9082
  disableDomainDNSSEC = request => this.client.fetch({
9029
9083
  body: '{}',
9030
- headers: jsonContentHeaders$k,
9084
+ headers: jsonContentHeaders$l,
9031
9085
  method: 'POST',
9032
9086
  path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/disable-dnssec`
9033
9087
  }, unmarshalDomain$2);
@@ -9071,7 +9125,7 @@ class RegistrarAPI extends API$u {
9071
9125
  */
9072
9126
  createDomainHost = request => this.client.fetch({
9073
9127
  body: JSON.stringify(marshalRegistrarApiCreateDomainHostRequest(request, this.client.settings)),
9074
- headers: jsonContentHeaders$k,
9128
+ headers: jsonContentHeaders$l,
9075
9129
  method: 'POST',
9076
9130
  path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/hosts`
9077
9131
  }, unmarshalHost);
@@ -9097,7 +9151,7 @@ class RegistrarAPI extends API$u {
9097
9151
  */
9098
9152
  updateDomainHost = request => this.client.fetch({
9099
9153
  body: JSON.stringify(marshalRegistrarApiUpdateDomainHostRequest(request, this.client.settings)),
9100
- headers: jsonContentHeaders$k,
9154
+ headers: jsonContentHeaders$l,
9101
9155
  method: 'PATCH',
9102
9156
  path: `/domain/v2beta1/domains/${validatePathParam('domain', request.domain)}/hosts/${validatePathParam('name', request.name)}`
9103
9157
  }, unmarshalHost);
@@ -9117,9 +9171,9 @@ class RegistrarAPI extends API$u {
9117
9171
  // This file was automatically generated. DO NOT EDIT.
9118
9172
  // If you have any remark or suggestion do not hesitate to open an issue.
9119
9173
 
9120
- var index_gen$j = /*#__PURE__*/Object.freeze({
9174
+ var index_gen$k = /*#__PURE__*/Object.freeze({
9121
9175
  __proto__: null,
9122
- API: API$l,
9176
+ API: API$m,
9123
9177
  DNS_ZONE_TRANSIENT_STATUSES: DNS_ZONE_TRANSIENT_STATUSES,
9124
9178
  DOMAIN_FEATURE_TRANSIENT_STATUSES: DOMAIN_FEATURE_TRANSIENT_STATUSES,
9125
9179
  DOMAIN_REGISTRATION_STATUS_TRANSFER_TRANSIENT_STATUSES: DOMAIN_REGISTRATION_STATUS_TRANSFER_TRANSIENT_STATUSES,
@@ -9130,9 +9184,9 @@ var index_gen$j = /*#__PURE__*/Object.freeze({
9130
9184
  TASK_TRANSIENT_STATUSES: TASK_TRANSIENT_STATUSES$1
9131
9185
  });
9132
9186
 
9133
- var index$m = /*#__PURE__*/Object.freeze({
9187
+ var index$n = /*#__PURE__*/Object.freeze({
9134
9188
  __proto__: null,
9135
- v2beta1: index_gen$j
9189
+ v2beta1: index_gen$k
9136
9190
  });
9137
9191
 
9138
9192
  // This file was automatically generated. DO NOT EDIT.
@@ -9239,12 +9293,12 @@ const marshalUpdateFlexibleIPRequest = (request, defaults) => ({
9239
9293
 
9240
9294
  // This file was automatically generated. DO NOT EDIT.
9241
9295
  // If you have any remark or suggestion do not hesitate to open an issue.
9242
- const jsonContentHeaders$j = {
9296
+ const jsonContentHeaders$k = {
9243
9297
  'Content-Type': 'application/json; charset=utf-8'
9244
9298
  };
9245
9299
 
9246
9300
  /** Elastic Metal - Flexible IP API. */
9247
- let API$k = class API extends API$u {
9301
+ let API$l = class API extends API$v {
9248
9302
  /** Lists the available zones of the API. */
9249
9303
  static LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1'];
9250
9304
 
@@ -9257,7 +9311,7 @@ let API$k = class API extends API$u {
9257
9311
  */
9258
9312
  createFlexibleIP = request => this.client.fetch({
9259
9313
  body: JSON.stringify(marshalCreateFlexibleIPRequest(request, this.client.settings)),
9260
- headers: jsonContentHeaders$j,
9314
+ headers: jsonContentHeaders$k,
9261
9315
  method: 'POST',
9262
9316
  path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips`
9263
9317
  }, unmarshalFlexibleIP);
@@ -9307,7 +9361,7 @@ let API$k = class API extends API$u {
9307
9361
  */
9308
9362
  updateFlexibleIP = request => this.client.fetch({
9309
9363
  body: JSON.stringify(marshalUpdateFlexibleIPRequest(request, this.client.settings)),
9310
- headers: jsonContentHeaders$j,
9364
+ headers: jsonContentHeaders$k,
9311
9365
  method: 'PATCH',
9312
9366
  path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips/${validatePathParam('fipId', request.fipId)}`
9313
9367
  }, unmarshalFlexibleIP);
@@ -9333,7 +9387,7 @@ let API$k = class API extends API$u {
9333
9387
  */
9334
9388
  attachFlexibleIP = request => this.client.fetch({
9335
9389
  body: JSON.stringify(marshalAttachFlexibleIPRequest(request, this.client.settings)),
9336
- headers: jsonContentHeaders$j,
9390
+ headers: jsonContentHeaders$k,
9337
9391
  method: 'POST',
9338
9392
  path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips/attach`
9339
9393
  }, unmarshalAttachFlexibleIPsResponse);
@@ -9347,7 +9401,7 @@ let API$k = class API extends API$u {
9347
9401
  */
9348
9402
  detachFlexibleIP = request => this.client.fetch({
9349
9403
  body: JSON.stringify(marshalDetachFlexibleIPRequest(request, this.client.settings)),
9350
- headers: jsonContentHeaders$j,
9404
+ headers: jsonContentHeaders$k,
9351
9405
  method: 'POST',
9352
9406
  path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips/detach`
9353
9407
  }, unmarshalDetachFlexibleIPsResponse);
@@ -9361,7 +9415,7 @@ let API$k = class API extends API$u {
9361
9415
  */
9362
9416
  generateMACAddr = request => this.client.fetch({
9363
9417
  body: JSON.stringify(marshalGenerateMACAddrRequest(request, this.client.settings)),
9364
- headers: jsonContentHeaders$j,
9418
+ headers: jsonContentHeaders$k,
9365
9419
  method: 'POST',
9366
9420
  path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips/${validatePathParam('fipId', request.fipId)}/mac`
9367
9421
  }, unmarshalFlexibleIP);
@@ -9376,7 +9430,7 @@ let API$k = class API extends API$u {
9376
9430
  */
9377
9431
  duplicateMACAddr = request => this.client.fetch({
9378
9432
  body: JSON.stringify(marshalDuplicateMACAddrRequest(request, this.client.settings)),
9379
- headers: jsonContentHeaders$j,
9433
+ headers: jsonContentHeaders$k,
9380
9434
  method: 'POST',
9381
9435
  path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips/${validatePathParam('fipId', request.fipId)}/mac/duplicate`
9382
9436
  }, unmarshalFlexibleIP);
@@ -9391,7 +9445,7 @@ let API$k = class API extends API$u {
9391
9445
  */
9392
9446
  moveMACAddr = request => this.client.fetch({
9393
9447
  body: JSON.stringify(marshalMoveMACAddrRequest(request, this.client.settings)),
9394
- headers: jsonContentHeaders$j,
9448
+ headers: jsonContentHeaders$k,
9395
9449
  method: 'POST',
9396
9450
  path: `/flexible-ip/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/fips/${validatePathParam('fipId', request.fipId)}/mac/move`
9397
9451
  }, unmarshalFlexibleIP);
@@ -9421,7 +9475,7 @@ const ListFlexibleIPsRequest = {
9421
9475
  }
9422
9476
  };
9423
9477
 
9424
- var validationRules_gen$5 = /*#__PURE__*/Object.freeze({
9478
+ var validationRules_gen$7 = /*#__PURE__*/Object.freeze({
9425
9479
  __proto__: null,
9426
9480
  ListFlexibleIPsRequest: ListFlexibleIPsRequest
9427
9481
  });
@@ -9429,17 +9483,17 @@ var validationRules_gen$5 = /*#__PURE__*/Object.freeze({
9429
9483
  // This file was automatically generated. DO NOT EDIT.
9430
9484
  // If you have any remark or suggestion do not hesitate to open an issue.
9431
9485
 
9432
- var index_gen$i = /*#__PURE__*/Object.freeze({
9486
+ var index_gen$j = /*#__PURE__*/Object.freeze({
9433
9487
  __proto__: null,
9434
- API: API$k,
9488
+ API: API$l,
9435
9489
  FLEXIBLE_IP_TRANSIENT_STATUSES: FLEXIBLE_IP_TRANSIENT_STATUSES,
9436
9490
  MAC_ADDRESS_TRANSIENT_STATUSES: MAC_ADDRESS_TRANSIENT_STATUSES,
9437
- ValidationRules: validationRules_gen$5
9491
+ ValidationRules: validationRules_gen$7
9438
9492
  });
9439
9493
 
9440
- var index$l = /*#__PURE__*/Object.freeze({
9494
+ var index$m = /*#__PURE__*/Object.freeze({
9441
9495
  __proto__: null,
9442
- v1alpha1: index_gen$i
9496
+ v1alpha1: index_gen$j
9443
9497
  });
9444
9498
 
9445
9499
  // This file was automatically generated. DO NOT EDIT.
@@ -9481,6 +9535,7 @@ const unmarshalTriggerMnqNatsClientConfig = data => {
9481
9535
  return {
9482
9536
  mnqCredentialId: data.mnq_credential_id,
9483
9537
  mnqNamespaceId: data.mnq_namespace_id,
9538
+ mnqNatsAccountId: data.mnq_nats_account_id,
9484
9539
  mnqProjectId: data.mnq_project_id,
9485
9540
  mnqRegion: data.mnq_region,
9486
9541
  subject: data.subject
@@ -9811,12 +9866,12 @@ const marshalCreateTriggerRequest = (request, defaults) => ({
9811
9866
  ...resolveOneOf([{
9812
9867
  param: 'scw_sqs_config',
9813
9868
  value: request.scwSqsConfig ? marshalCreateTriggerRequestMnqSqsClientConfig(request.scwSqsConfig) : undefined
9814
- }, {
9815
- param: 'sqs_config',
9816
- value: request.sqsConfig ? marshalCreateTriggerRequestSqsClientConfig(request.sqsConfig) : undefined
9817
9869
  }, {
9818
9870
  param: 'scw_nats_config',
9819
9871
  value: request.scwNatsConfig ? marshalCreateTriggerRequestMnqNatsClientConfig(request.scwNatsConfig) : undefined
9872
+ }, {
9873
+ param: 'sqs_config',
9874
+ value: request.sqsConfig ? marshalCreateTriggerRequestSqsClientConfig(request.sqsConfig) : undefined
9820
9875
  }])
9821
9876
  });
9822
9877
  const marshalUpdateCronRequest = (request, defaults) => ({
@@ -9855,12 +9910,12 @@ const marshalUpdateTriggerRequest = (request, defaults) => ({
9855
9910
 
9856
9911
  // This file was automatically generated. DO NOT EDIT.
9857
9912
  // If you have any remark or suggestion do not hesitate to open an issue.
9858
- const jsonContentHeaders$i = {
9913
+ const jsonContentHeaders$j = {
9859
9914
  'Content-Type': 'application/json; charset=utf-8'
9860
9915
  };
9861
9916
 
9862
9917
  /** Serverless Functions API. */
9863
- let API$j = class API extends API$u {
9918
+ let API$k = class API extends API$v {
9864
9919
  /** Lists the available regions of the API. */
9865
9920
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
9866
9921
  pageOfListNamespaces = (request = {}) => this.client.fetch({
@@ -9907,7 +9962,7 @@ let API$j = class API extends API$u {
9907
9962
  */
9908
9963
  createNamespace = (request = {}) => this.client.fetch({
9909
9964
  body: JSON.stringify(marshalCreateNamespaceRequest$2(request, this.client.settings)),
9910
- headers: jsonContentHeaders$i,
9965
+ headers: jsonContentHeaders$j,
9911
9966
  method: 'POST',
9912
9967
  path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces`
9913
9968
  }, unmarshalNamespace$2);
@@ -9921,7 +9976,7 @@ let API$j = class API extends API$u {
9921
9976
  */
9922
9977
  updateNamespace = request => this.client.fetch({
9923
9978
  body: JSON.stringify(marshalUpdateNamespaceRequest$2(request, this.client.settings)),
9924
- headers: jsonContentHeaders$i,
9979
+ headers: jsonContentHeaders$j,
9925
9980
  method: 'PATCH',
9926
9981
  path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces/${validatePathParam('namespaceId', request.namespaceId)}`
9927
9982
  }, unmarshalNamespace$2);
@@ -9980,7 +10035,7 @@ let API$j = class API extends API$u {
9980
10035
  */
9981
10036
  createFunction = request => this.client.fetch({
9982
10037
  body: JSON.stringify(marshalCreateFunctionRequest(request, this.client.settings)),
9983
- headers: jsonContentHeaders$i,
10038
+ headers: jsonContentHeaders$j,
9984
10039
  method: 'POST',
9985
10040
  path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/functions`
9986
10041
  }, unmarshalFunction);
@@ -9994,7 +10049,7 @@ let API$j = class API extends API$u {
9994
10049
  */
9995
10050
  updateFunction = request => this.client.fetch({
9996
10051
  body: JSON.stringify(marshalUpdateFunctionRequest(request, this.client.settings)),
9997
- headers: jsonContentHeaders$i,
10052
+ headers: jsonContentHeaders$j,
9998
10053
  method: 'PATCH',
9999
10054
  path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/functions/${validatePathParam('functionId', request.functionId)}`
10000
10055
  }, unmarshalFunction);
@@ -10018,7 +10073,7 @@ let API$j = class API extends API$u {
10018
10073
  */
10019
10074
  deployFunction = request => this.client.fetch({
10020
10075
  body: '{}',
10021
- headers: jsonContentHeaders$i,
10076
+ headers: jsonContentHeaders$j,
10022
10077
  method: 'POST',
10023
10078
  path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/functions/${validatePathParam('functionId', request.functionId)}/deploy`
10024
10079
  }, unmarshalFunction);
@@ -10101,7 +10156,7 @@ let API$j = class API extends API$u {
10101
10156
  */
10102
10157
  createCron = request => this.client.fetch({
10103
10158
  body: JSON.stringify(marshalCreateCronRequest(request, this.client.settings)),
10104
- headers: jsonContentHeaders$i,
10159
+ headers: jsonContentHeaders$j,
10105
10160
  method: 'POST',
10106
10161
  path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/crons`
10107
10162
  }, unmarshalCron);
@@ -10114,7 +10169,7 @@ let API$j = class API extends API$u {
10114
10169
  */
10115
10170
  updateCron = request => this.client.fetch({
10116
10171
  body: JSON.stringify(marshalUpdateCronRequest(request, this.client.settings)),
10117
- headers: jsonContentHeaders$i,
10172
+ headers: jsonContentHeaders$j,
10118
10173
  method: 'PATCH',
10119
10174
  path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/crons/${validatePathParam('cronId', request.cronId)}`
10120
10175
  }, unmarshalCron);
@@ -10188,7 +10243,7 @@ let API$j = class API extends API$u {
10188
10243
  */
10189
10244
  createDomain = request => this.client.fetch({
10190
10245
  body: JSON.stringify(marshalCreateDomainRequest$1(request, this.client.settings)),
10191
- headers: jsonContentHeaders$i,
10246
+ headers: jsonContentHeaders$j,
10192
10247
  method: 'POST',
10193
10248
  path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/domains`
10194
10249
  }, unmarshalDomain$1);
@@ -10230,7 +10285,7 @@ let API$j = class API extends API$u {
10230
10285
  */
10231
10286
  createToken = (request = {}) => this.client.fetch({
10232
10287
  body: JSON.stringify(marshalCreateTokenRequest(request, this.client.settings)),
10233
- headers: jsonContentHeaders$i,
10288
+ headers: jsonContentHeaders$j,
10234
10289
  method: 'POST',
10235
10290
  path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/tokens`
10236
10291
  }, unmarshalToken);
@@ -10280,7 +10335,7 @@ let API$j = class API extends API$u {
10280
10335
  }, unmarshalToken);
10281
10336
  createTrigger = request => this.client.fetch({
10282
10337
  body: JSON.stringify(marshalCreateTriggerRequest(request, this.client.settings)),
10283
- headers: jsonContentHeaders$i,
10338
+ headers: jsonContentHeaders$j,
10284
10339
  method: 'POST',
10285
10340
  path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/triggers`
10286
10341
  }, unmarshalTrigger);
@@ -10315,7 +10370,7 @@ let API$j = class API extends API$u {
10315
10370
  listTriggers = (request = {}) => enrichForPagination('triggers', this.pageOfListTriggers, request);
10316
10371
  updateTrigger = request => this.client.fetch({
10317
10372
  body: JSON.stringify(marshalUpdateTriggerRequest(request, this.client.settings)),
10318
- headers: jsonContentHeaders$i,
10373
+ headers: jsonContentHeaders$j,
10319
10374
  method: 'PATCH',
10320
10375
  path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/triggers/${validatePathParam('triggerId', request.triggerId)}`
10321
10376
  }, unmarshalTrigger);
@@ -10328,20 +10383,72 @@ let API$j = class API extends API$u {
10328
10383
  // This file was automatically generated. DO NOT EDIT.
10329
10384
  // If you have any remark or suggestion do not hesitate to open an issue.
10330
10385
 
10331
- var index_gen$h = /*#__PURE__*/Object.freeze({
10386
+ const CreateTriggerRequest = {
10387
+ description: {
10388
+ maxLength: 255
10389
+ },
10390
+ name: {
10391
+ maxLength: 50,
10392
+ minLength: 1
10393
+ }
10394
+ };
10395
+ const CreateTriggerRequestMnqNatsClientConfig = {
10396
+ mnqRegion: {
10397
+ maxLength: 20,
10398
+ minLength: 1
10399
+ },
10400
+ subject: {
10401
+ maxLength: 100,
10402
+ minLength: 1,
10403
+ pattern: /^[^\s]+$/
10404
+ }
10405
+ };
10406
+ const CreateTriggerRequestMnqSqsClientConfig = {
10407
+ mnqRegion: {
10408
+ maxLength: 20,
10409
+ minLength: 1
10410
+ },
10411
+ queue: {
10412
+ maxLength: 100,
10413
+ minLength: 1
10414
+ }
10415
+ };
10416
+ const UpdateTriggerRequest = {
10417
+ description: {
10418
+ maxLength: 255
10419
+ },
10420
+ name: {
10421
+ maxLength: 50,
10422
+ minLength: 1
10423
+ }
10424
+ };
10425
+
10426
+ var validationRules_gen$6 = /*#__PURE__*/Object.freeze({
10332
10427
  __proto__: null,
10333
- API: API$j,
10428
+ CreateTriggerRequest: CreateTriggerRequest,
10429
+ CreateTriggerRequestMnqNatsClientConfig: CreateTriggerRequestMnqNatsClientConfig,
10430
+ CreateTriggerRequestMnqSqsClientConfig: CreateTriggerRequestMnqSqsClientConfig,
10431
+ UpdateTriggerRequest: UpdateTriggerRequest
10432
+ });
10433
+
10434
+ // This file was automatically generated. DO NOT EDIT.
10435
+ // If you have any remark or suggestion do not hesitate to open an issue.
10436
+
10437
+ var index_gen$i = /*#__PURE__*/Object.freeze({
10438
+ __proto__: null,
10439
+ API: API$k,
10334
10440
  CRON_TRANSIENT_STATUSES: CRON_TRANSIENT_STATUSES,
10335
10441
  DOMAIN_TRANSIENT_STATUSES: DOMAIN_TRANSIENT_STATUSES$1,
10336
10442
  FUNCTION_TRANSIENT_STATUSES: FUNCTION_TRANSIENT_STATUSES,
10337
10443
  NAMESPACE_TRANSIENT_STATUSES: NAMESPACE_TRANSIENT_STATUSES$1,
10338
10444
  TOKEN_TRANSIENT_STATUSES: TOKEN_TRANSIENT_STATUSES,
10339
- TRIGGER_TRANSIENT_STATUSES: TRIGGER_TRANSIENT_STATUSES
10445
+ TRIGGER_TRANSIENT_STATUSES: TRIGGER_TRANSIENT_STATUSES,
10446
+ ValidationRules: validationRules_gen$6
10340
10447
  });
10341
10448
 
10342
- var index$k = /*#__PURE__*/Object.freeze({
10449
+ var index$l = /*#__PURE__*/Object.freeze({
10343
10450
  __proto__: null,
10344
- v1beta1: index_gen$h
10451
+ v1beta1: index_gen$i
10345
10452
  });
10346
10453
 
10347
10454
  // This file was automatically generated. DO NOT EDIT.
@@ -10724,12 +10831,12 @@ const marshalUpdateSSHKeyRequest = (request, defaults) => ({
10724
10831
 
10725
10832
  // This file was automatically generated. DO NOT EDIT.
10726
10833
  // If you have any remark or suggestion do not hesitate to open an issue.
10727
- const jsonContentHeaders$h = {
10834
+ const jsonContentHeaders$i = {
10728
10835
  'Content-Type': 'application/json; charset=utf-8'
10729
10836
  };
10730
10837
 
10731
10838
  /** IAM API. */
10732
- let API$i = class API extends API$u {
10839
+ let API$j = class API extends API$v {
10733
10840
  pageOfListSSHKeys = (request = {}) => this.client.fetch({
10734
10841
  method: 'GET',
10735
10842
  path: `/iam/v1alpha1/ssh-keys`,
@@ -10756,7 +10863,7 @@ let API$i = class API extends API$u {
10756
10863
  */
10757
10864
  createSSHKey = request => this.client.fetch({
10758
10865
  body: JSON.stringify(marshalCreateSSHKeyRequest(request, this.client.settings)),
10759
- headers: jsonContentHeaders$h,
10866
+ headers: jsonContentHeaders$i,
10760
10867
  method: 'POST',
10761
10868
  path: `/iam/v1alpha1/ssh-keys`
10762
10869
  }, unmarshalSSHKey);
@@ -10783,7 +10890,7 @@ let API$i = class API extends API$u {
10783
10890
  */
10784
10891
  updateSSHKey = request => this.client.fetch({
10785
10892
  body: JSON.stringify(marshalUpdateSSHKeyRequest(request, this.client.settings)),
10786
- headers: jsonContentHeaders$h,
10893
+ headers: jsonContentHeaders$i,
10787
10894
  method: 'PATCH',
10788
10895
  path: `/iam/v1alpha1/ssh-keys/${validatePathParam('sshKeyId', request.sshKeyId)}`
10789
10896
  }, unmarshalSSHKey);
@@ -10853,7 +10960,7 @@ let API$i = class API extends API$u {
10853
10960
  */
10854
10961
  createUser = request => this.client.fetch({
10855
10962
  body: JSON.stringify(marshalCreateUserRequest$1(request, this.client.settings)),
10856
- headers: jsonContentHeaders$h,
10963
+ headers: jsonContentHeaders$i,
10857
10964
  method: 'POST',
10858
10965
  path: `/iam/v1alpha1/users`
10859
10966
  }, unmarshalUser$1);
@@ -10885,7 +10992,7 @@ let API$i = class API extends API$u {
10885
10992
  */
10886
10993
  createApplication = request => this.client.fetch({
10887
10994
  body: JSON.stringify(marshalCreateApplicationRequest(request, this.client.settings)),
10888
- headers: jsonContentHeaders$h,
10995
+ headers: jsonContentHeaders$i,
10889
10996
  method: 'POST',
10890
10997
  path: `/iam/v1alpha1/applications`
10891
10998
  }, unmarshalApplication);
@@ -10913,7 +11020,7 @@ let API$i = class API extends API$u {
10913
11020
  */
10914
11021
  updateApplication = request => this.client.fetch({
10915
11022
  body: JSON.stringify(marshalUpdateApplicationRequest(request, this.client.settings)),
10916
- headers: jsonContentHeaders$h,
11023
+ headers: jsonContentHeaders$i,
10917
11024
  method: 'PATCH',
10918
11025
  path: `/iam/v1alpha1/applications/${validatePathParam('applicationId', request.applicationId)}`
10919
11026
  }, unmarshalApplication);
@@ -10957,7 +11064,7 @@ let API$i = class API extends API$u {
10957
11064
  */
10958
11065
  createGroup = request => this.client.fetch({
10959
11066
  body: JSON.stringify(marshalCreateGroupRequest(request, this.client.settings)),
10960
- headers: jsonContentHeaders$h,
11067
+ headers: jsonContentHeaders$i,
10961
11068
  method: 'POST',
10962
11069
  path: `/iam/v1alpha1/groups`
10963
11070
  }, unmarshalGroup);
@@ -10984,7 +11091,7 @@ let API$i = class API extends API$u {
10984
11091
  */
10985
11092
  updateGroup = request => this.client.fetch({
10986
11093
  body: JSON.stringify(marshalUpdateGroupRequest(request, this.client.settings)),
10987
- headers: jsonContentHeaders$h,
11094
+ headers: jsonContentHeaders$i,
10988
11095
  method: 'PATCH',
10989
11096
  path: `/iam/v1alpha1/groups/${validatePathParam('groupId', request.groupId)}`
10990
11097
  }, unmarshalGroup);
@@ -10999,7 +11106,7 @@ let API$i = class API extends API$u {
10999
11106
  */
11000
11107
  setGroupMembers = request => this.client.fetch({
11001
11108
  body: JSON.stringify(marshalSetGroupMembersRequest(request, this.client.settings)),
11002
- headers: jsonContentHeaders$h,
11109
+ headers: jsonContentHeaders$i,
11003
11110
  method: 'PUT',
11004
11111
  path: `/iam/v1alpha1/groups/${validatePathParam('groupId', request.groupId)}/members`
11005
11112
  }, unmarshalGroup);
@@ -11014,7 +11121,7 @@ let API$i = class API extends API$u {
11014
11121
  */
11015
11122
  addGroupMember = request => this.client.fetch({
11016
11123
  body: JSON.stringify(marshalAddGroupMemberRequest(request, this.client.settings)),
11017
- headers: jsonContentHeaders$h,
11124
+ headers: jsonContentHeaders$i,
11018
11125
  method: 'POST',
11019
11126
  path: `/iam/v1alpha1/groups/${validatePathParam('groupId', request.groupId)}/add-member`
11020
11127
  }, unmarshalGroup);
@@ -11032,7 +11139,7 @@ let API$i = class API extends API$u {
11032
11139
  */
11033
11140
  addGroupMembers = request => this.client.fetch({
11034
11141
  body: JSON.stringify(marshalAddGroupMembersRequest(request, this.client.settings)),
11035
- headers: jsonContentHeaders$h,
11142
+ headers: jsonContentHeaders$i,
11036
11143
  method: 'POST',
11037
11144
  path: `/iam/v1alpha1/groups/${validatePathParam('groupId', request.groupId)}/add-members`
11038
11145
  }, unmarshalGroup);
@@ -11051,7 +11158,7 @@ let API$i = class API extends API$u {
11051
11158
  */
11052
11159
  removeGroupMember = request => this.client.fetch({
11053
11160
  body: JSON.stringify(marshalRemoveGroupMemberRequest(request, this.client.settings)),
11054
- headers: jsonContentHeaders$h,
11161
+ headers: jsonContentHeaders$i,
11055
11162
  method: 'POST',
11056
11163
  path: `/iam/v1alpha1/groups/${validatePathParam('groupId', request.groupId)}/remove-member`
11057
11164
  }, unmarshalGroup);
@@ -11097,7 +11204,7 @@ let API$i = class API extends API$u {
11097
11204
  */
11098
11205
  createPolicy = request => this.client.fetch({
11099
11206
  body: JSON.stringify(marshalCreatePolicyRequest(request, this.client.settings)),
11100
- headers: jsonContentHeaders$h,
11207
+ headers: jsonContentHeaders$i,
11101
11208
  method: 'POST',
11102
11209
  path: `/iam/v1alpha1/policies`
11103
11210
  }, unmarshalPolicy);
@@ -11126,7 +11233,7 @@ let API$i = class API extends API$u {
11126
11233
  */
11127
11234
  updatePolicy = request => this.client.fetch({
11128
11235
  body: JSON.stringify(marshalUpdatePolicyRequest(request, this.client.settings)),
11129
- headers: jsonContentHeaders$h,
11236
+ headers: jsonContentHeaders$i,
11130
11237
  method: 'PATCH',
11131
11238
  path: `/iam/v1alpha1/policies/${validatePathParam('policyId', request.policyId)}`
11132
11239
  }, unmarshalPolicy);
@@ -11153,7 +11260,7 @@ let API$i = class API extends API$u {
11153
11260
  */
11154
11261
  clonePolicy = request => this.client.fetch({
11155
11262
  body: '{}',
11156
- headers: jsonContentHeaders$h,
11263
+ headers: jsonContentHeaders$i,
11157
11264
  method: 'POST',
11158
11265
  path: `/iam/v1alpha1/policies/${validatePathParam('policyId', request.policyId)}/clone`
11159
11266
  }, unmarshalPolicy);
@@ -11171,7 +11278,7 @@ let API$i = class API extends API$u {
11171
11278
  */
11172
11279
  setRules = request => this.client.fetch({
11173
11280
  body: JSON.stringify(marshalSetRulesRequest(request, this.client.settings)),
11174
- headers: jsonContentHeaders$h,
11281
+ headers: jsonContentHeaders$i,
11175
11282
  method: 'PUT',
11176
11283
  path: `/iam/v1alpha1/rules`
11177
11284
  }, unmarshalSetRulesResponse);
@@ -11242,7 +11349,7 @@ let API$i = class API extends API$u {
11242
11349
  */
11243
11350
  createAPIKey = request => this.client.fetch({
11244
11351
  body: JSON.stringify(marshalCreateAPIKeyRequest(request, this.client.settings)),
11245
- headers: jsonContentHeaders$h,
11352
+ headers: jsonContentHeaders$i,
11246
11353
  method: 'POST',
11247
11354
  path: `/iam/v1alpha1/api-keys`
11248
11355
  }, unmarshalAPIKey);
@@ -11272,7 +11379,7 @@ let API$i = class API extends API$u {
11272
11379
  */
11273
11380
  updateAPIKey = request => this.client.fetch({
11274
11381
  body: JSON.stringify(marshalUpdateAPIKeyRequest(request, this.client.settings)),
11275
- headers: jsonContentHeaders$h,
11382
+ headers: jsonContentHeaders$i,
11276
11383
  method: 'PATCH',
11277
11384
  path: `/iam/v1alpha1/api-keys/${validatePathParam('accessKey', request.accessKey)}`
11278
11385
  }, unmarshalAPIKey);
@@ -11561,7 +11668,7 @@ const UpdateSSHKeyRequest = {
11561
11668
  }
11562
11669
  };
11563
11670
 
11564
- var validationRules_gen$4 = /*#__PURE__*/Object.freeze({
11671
+ var validationRules_gen$5 = /*#__PURE__*/Object.freeze({
11565
11672
  __proto__: null,
11566
11673
  CreateAPIKeyRequest: CreateAPIKeyRequest,
11567
11674
  CreateApplicationRequest: CreateApplicationRequest,
@@ -11589,15 +11696,15 @@ var validationRules_gen$4 = /*#__PURE__*/Object.freeze({
11589
11696
  // This file was automatically generated. DO NOT EDIT.
11590
11697
  // If you have any remark or suggestion do not hesitate to open an issue.
11591
11698
 
11592
- var index_gen$g = /*#__PURE__*/Object.freeze({
11699
+ var index_gen$h = /*#__PURE__*/Object.freeze({
11593
11700
  __proto__: null,
11594
- API: API$i,
11595
- ValidationRules: validationRules_gen$4
11701
+ API: API$j,
11702
+ ValidationRules: validationRules_gen$5
11596
11703
  });
11597
11704
 
11598
- var index$j = /*#__PURE__*/Object.freeze({
11705
+ var index$k = /*#__PURE__*/Object.freeze({
11599
11706
  __proto__: null,
11600
- v1alpha1: index_gen$g
11707
+ v1alpha1: index_gen$h
11601
11708
  });
11602
11709
 
11603
11710
  // This file was automatically generated. DO NOT EDIT.
@@ -12989,12 +13096,12 @@ const marshalUpdateVolumeRequest$1 = (request, defaults) => ({
12989
13096
 
12990
13097
  // This file was automatically generated. DO NOT EDIT.
12991
13098
  // If you have any remark or suggestion do not hesitate to open an issue.
12992
- const jsonContentHeaders$g = {
13099
+ const jsonContentHeaders$h = {
12993
13100
  'Content-Type': 'application/json; charset=utf-8'
12994
13101
  };
12995
13102
 
12996
13103
  /** Instance API. */
12997
- let API$h = class API extends API$u {
13104
+ let API$i = class API extends API$v {
12998
13105
  /** Lists the available zones of the API. */
12999
13106
  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'];
13000
13107
 
@@ -13050,7 +13157,7 @@ let API$h = class API extends API$u {
13050
13157
  listServers = (request = {}) => enrichForPagination('servers', this.pageOfListServers, request);
13051
13158
  _createServer = request => this.client.fetch({
13052
13159
  body: JSON.stringify(marshalCreateServerRequest(request, this.client.settings)),
13053
- headers: jsonContentHeaders$g,
13160
+ headers: jsonContentHeaders$h,
13054
13161
  method: 'POST',
13055
13162
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers`
13056
13163
  }, unmarshalCreateServerResponse);
@@ -13077,13 +13184,13 @@ let API$h = class API extends API$u {
13077
13184
  }, unmarshalGetServerResponse);
13078
13185
  _setServer = request => this.client.fetch({
13079
13186
  body: JSON.stringify(marshalSetServerRequest(request, this.client.settings)),
13080
- headers: jsonContentHeaders$g,
13187
+ headers: jsonContentHeaders$h,
13081
13188
  method: 'PUT',
13082
13189
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('id', request.id)}`
13083
13190
  }, unmarshalSetServerResponse);
13084
13191
  _updateServer = request => this.client.fetch({
13085
13192
  body: JSON.stringify(marshalUpdateServerRequest(request, this.client.settings)),
13086
- headers: jsonContentHeaders$g,
13193
+ headers: jsonContentHeaders$h,
13087
13194
  method: 'PATCH',
13088
13195
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}`
13089
13196
  }, unmarshalUpdateServerResponse);
@@ -13121,7 +13228,7 @@ let API$h = class API extends API$u {
13121
13228
  */
13122
13229
  serverAction = request => this.client.fetch({
13123
13230
  body: JSON.stringify(marshalServerActionRequest(request, this.client.settings)),
13124
- headers: jsonContentHeaders$g,
13231
+ headers: jsonContentHeaders$h,
13125
13232
  method: 'POST',
13126
13233
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/action`
13127
13234
  }, unmarshalServerActionResponse);
@@ -13180,13 +13287,13 @@ let API$h = class API extends API$u {
13180
13287
  */
13181
13288
  createImage = request => this.client.fetch({
13182
13289
  body: JSON.stringify(marshalCreateImageRequest(request, this.client.settings)),
13183
- headers: jsonContentHeaders$g,
13290
+ headers: jsonContentHeaders$h,
13184
13291
  method: 'POST',
13185
13292
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/images`
13186
13293
  }, unmarshalCreateImageResponse);
13187
13294
  _setImage = request => this.client.fetch({
13188
13295
  body: JSON.stringify(marshalSetImageRequest(request, this.client.settings)),
13189
- headers: jsonContentHeaders$g,
13296
+ headers: jsonContentHeaders$h,
13190
13297
  method: 'PUT',
13191
13298
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/images/${validatePathParam('id', request.id)}`
13192
13299
  }, unmarshalSetImageResponse);
@@ -13225,7 +13332,7 @@ let API$h = class API extends API$u {
13225
13332
  */
13226
13333
  createSnapshot = (request = {}) => this.client.fetch({
13227
13334
  body: JSON.stringify(marshalCreateSnapshotRequest$1(request, this.client.settings)),
13228
- headers: jsonContentHeaders$g,
13335
+ headers: jsonContentHeaders$h,
13229
13336
  method: 'POST',
13230
13337
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/snapshots`
13231
13338
  }, unmarshalCreateSnapshotResponse);
@@ -13242,7 +13349,7 @@ let API$h = class API extends API$u {
13242
13349
  }, unmarshalGetSnapshotResponse);
13243
13350
  _setSnapshot = request => this.client.fetch({
13244
13351
  body: JSON.stringify(marshalSetSnapshotRequest(request, this.client.settings)),
13245
- headers: jsonContentHeaders$g,
13352
+ headers: jsonContentHeaders$h,
13246
13353
  method: 'PUT',
13247
13354
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/snapshots/${validatePathParam('snapshotId', request.snapshotId)}`
13248
13355
  }, unmarshalSetSnapshotResponse);
@@ -13266,7 +13373,7 @@ let API$h = class API extends API$u {
13266
13373
  */
13267
13374
  exportSnapshot = request => this.client.fetch({
13268
13375
  body: JSON.stringify(marshalExportSnapshotRequest(request, this.client.settings)),
13269
- headers: jsonContentHeaders$g,
13376
+ headers: jsonContentHeaders$h,
13270
13377
  method: 'POST',
13271
13378
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/snapshots/${validatePathParam('snapshotId', request.snapshotId)}/export`
13272
13379
  }, unmarshalExportSnapshotResponse);
@@ -13294,7 +13401,7 @@ let API$h = class API extends API$u {
13294
13401
  */
13295
13402
  createVolume = (request = {}) => this.client.fetch({
13296
13403
  body: JSON.stringify(marshalCreateVolumeRequest$1(request, this.client.settings)),
13297
- headers: jsonContentHeaders$g,
13404
+ headers: jsonContentHeaders$h,
13298
13405
  method: 'POST',
13299
13406
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/volumes`
13300
13407
  }, unmarshalCreateVolumeResponse);
@@ -13320,7 +13427,7 @@ let API$h = class API extends API$u {
13320
13427
  */
13321
13428
  updateVolume = request => this.client.fetch({
13322
13429
  body: JSON.stringify(marshalUpdateVolumeRequest$1(request, this.client.settings)),
13323
- headers: jsonContentHeaders$g,
13430
+ headers: jsonContentHeaders$h,
13324
13431
  method: 'PATCH',
13325
13432
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/volumes/${validatePathParam('volumeId', request.volumeId)}`
13326
13433
  }, unmarshalUpdateVolumeResponse);
@@ -13357,7 +13464,7 @@ let API$h = class API extends API$u {
13357
13464
  */
13358
13465
  createSecurityGroup = request => this.client.fetch({
13359
13466
  body: JSON.stringify(marshalCreateSecurityGroupRequest(request, this.client.settings)),
13360
- headers: jsonContentHeaders$g,
13467
+ headers: jsonContentHeaders$h,
13361
13468
  method: 'POST',
13362
13469
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/security_groups`
13363
13470
  }, unmarshalCreateSecurityGroupResponse);
@@ -13385,7 +13492,7 @@ let API$h = class API extends API$u {
13385
13492
  });
13386
13493
  _setSecurityGroup = request => this.client.fetch({
13387
13494
  body: JSON.stringify(marshalSetSecurityGroupRequest(request, this.client.settings)),
13388
- headers: jsonContentHeaders$g,
13495
+ headers: jsonContentHeaders$h,
13389
13496
  method: 'PUT',
13390
13497
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/security_groups/${validatePathParam('id', request.id)}`
13391
13498
  }, unmarshalSetSecurityGroupResponse);
@@ -13423,7 +13530,7 @@ let API$h = class API extends API$u {
13423
13530
  */
13424
13531
  createSecurityGroupRule = request => this.client.fetch({
13425
13532
  body: JSON.stringify(marshalCreateSecurityGroupRuleRequest(request, this.client.settings)),
13426
- headers: jsonContentHeaders$g,
13533
+ headers: jsonContentHeaders$h,
13427
13534
  method: 'POST',
13428
13535
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/security_groups/${validatePathParam('securityGroupId', request.securityGroupId)}/rules`
13429
13536
  }, unmarshalCreateSecurityGroupRuleResponse);
@@ -13439,7 +13546,7 @@ let API$h = class API extends API$u {
13439
13546
  */
13440
13547
  setSecurityGroupRules = request => this.client.fetch({
13441
13548
  body: JSON.stringify(marshalSetSecurityGroupRulesRequest(request, this.client.settings)),
13442
- headers: jsonContentHeaders$g,
13549
+ headers: jsonContentHeaders$h,
13443
13550
  method: 'PUT',
13444
13551
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/security_groups/${validatePathParam('securityGroupId', request.securityGroupId)}/rules`
13445
13552
  }, unmarshalSetSecurityGroupRulesResponse);
@@ -13466,7 +13573,7 @@ let API$h = class API extends API$u {
13466
13573
  }, unmarshalGetSecurityGroupRuleResponse);
13467
13574
  _setSecurityGroupRule = request => this.client.fetch({
13468
13575
  body: JSON.stringify(marshalSetSecurityGroupRuleRequest(request, this.client.settings)),
13469
- headers: jsonContentHeaders$g,
13576
+ headers: jsonContentHeaders$h,
13470
13577
  method: 'PUT',
13471
13578
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/security_groups/${validatePathParam('securityGroupId', request.securityGroupId)}/rules/${validatePathParam('securityGroupRuleId', request.securityGroupRuleId)}`
13472
13579
  }, unmarshalSetSecurityGroupRuleResponse);
@@ -13494,7 +13601,7 @@ let API$h = class API extends API$u {
13494
13601
  */
13495
13602
  createPlacementGroup = (request = {}) => this.client.fetch({
13496
13603
  body: JSON.stringify(marshalCreatePlacementGroupRequest(request, this.client.settings)),
13497
- headers: jsonContentHeaders$g,
13604
+ headers: jsonContentHeaders$h,
13498
13605
  method: 'POST',
13499
13606
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/placement_groups`
13500
13607
  }, unmarshalCreatePlacementGroupResponse);
@@ -13518,7 +13625,7 @@ let API$h = class API extends API$u {
13518
13625
  */
13519
13626
  setPlacementGroup = request => this.client.fetch({
13520
13627
  body: JSON.stringify(marshalSetPlacementGroupRequest(request, this.client.settings)),
13521
- headers: jsonContentHeaders$g,
13628
+ headers: jsonContentHeaders$h,
13522
13629
  method: 'PUT',
13523
13630
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/placement_groups/${validatePathParam('placementGroupId', request.placementGroupId)}`
13524
13631
  }, unmarshalSetPlacementGroupResponse);
@@ -13532,7 +13639,7 @@ let API$h = class API extends API$u {
13532
13639
  */
13533
13640
  updatePlacementGroup = request => this.client.fetch({
13534
13641
  body: JSON.stringify(marshalUpdatePlacementGroupRequest(request, this.client.settings)),
13535
- headers: jsonContentHeaders$g,
13642
+ headers: jsonContentHeaders$h,
13536
13643
  method: 'PATCH',
13537
13644
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/placement_groups/${validatePathParam('placementGroupId', request.placementGroupId)}`
13538
13645
  }, unmarshalUpdatePlacementGroupResponse);
@@ -13568,7 +13675,7 @@ let API$h = class API extends API$u {
13568
13675
  */
13569
13676
  setPlacementGroupServers = request => this.client.fetch({
13570
13677
  body: JSON.stringify(marshalSetPlacementGroupServersRequest(request, this.client.settings)),
13571
- headers: jsonContentHeaders$g,
13678
+ headers: jsonContentHeaders$h,
13572
13679
  method: 'PUT',
13573
13680
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/placement_groups/${validatePathParam('placementGroupId', request.placementGroupId)}/servers`
13574
13681
  }, unmarshalSetPlacementGroupServersResponse);
@@ -13582,7 +13689,7 @@ let API$h = class API extends API$u {
13582
13689
  */
13583
13690
  updatePlacementGroupServers = request => this.client.fetch({
13584
13691
  body: JSON.stringify(marshalUpdatePlacementGroupServersRequest(request, this.client.settings)),
13585
- headers: jsonContentHeaders$g,
13692
+ headers: jsonContentHeaders$h,
13586
13693
  method: 'PATCH',
13587
13694
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/placement_groups/${validatePathParam('placementGroupId', request.placementGroupId)}/servers`
13588
13695
  }, unmarshalUpdatePlacementGroupServersResponse);
@@ -13609,7 +13716,7 @@ let API$h = class API extends API$u {
13609
13716
  */
13610
13717
  createIp = (request = {}) => this.client.fetch({
13611
13718
  body: JSON.stringify(marshalCreateIpRequest$1(request, this.client.settings)),
13612
- headers: jsonContentHeaders$g,
13719
+ headers: jsonContentHeaders$h,
13613
13720
  method: 'POST',
13614
13721
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/ips`
13615
13722
  }, unmarshalCreateIpResponse);
@@ -13634,7 +13741,7 @@ let API$h = class API extends API$u {
13634
13741
  */
13635
13742
  updateIp = request => this.client.fetch({
13636
13743
  body: JSON.stringify(marshalUpdateIpRequest$1(request, this.client.settings)),
13637
- headers: jsonContentHeaders$g,
13744
+ headers: jsonContentHeaders$h,
13638
13745
  method: 'PATCH',
13639
13746
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/ips/${validatePathParam('ip', request.ip)}`
13640
13747
  }, unmarshalUpdateIpResponse);
@@ -13670,7 +13777,7 @@ let API$h = class API extends API$u {
13670
13777
  */
13671
13778
  createPrivateNIC = request => this.client.fetch({
13672
13779
  body: JSON.stringify(marshalCreatePrivateNICRequest(request, this.client.settings)),
13673
- headers: jsonContentHeaders$g,
13780
+ headers: jsonContentHeaders$h,
13674
13781
  method: 'POST',
13675
13782
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/private_nics`
13676
13783
  }, unmarshalCreatePrivateNICResponse);
@@ -13695,7 +13802,7 @@ let API$h = class API extends API$u {
13695
13802
  */
13696
13803
  updatePrivateNIC = request => this.client.fetch({
13697
13804
  body: JSON.stringify(marshalUpdatePrivateNICRequest(request, this.client.settings)),
13698
- headers: jsonContentHeaders$g,
13805
+ headers: jsonContentHeaders$h,
13699
13806
  method: 'PATCH',
13700
13807
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/private_nics/${validatePathParam('privateNicId', request.privateNicId)}`
13701
13808
  }, unmarshalPrivateNIC);
@@ -13755,7 +13862,7 @@ let API$h = class API extends API$u {
13755
13862
  */
13756
13863
  planBlockMigration = (request = {}) => this.client.fetch({
13757
13864
  body: JSON.stringify(marshalPlanBlockMigrationRequest(request, this.client.settings)),
13758
- headers: jsonContentHeaders$g,
13865
+ headers: jsonContentHeaders$h,
13759
13866
  method: 'POST',
13760
13867
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/block-migration/plan`
13761
13868
  }, unmarshalMigrationPlan);
@@ -13770,7 +13877,7 @@ let API$h = class API extends API$u {
13770
13877
  */
13771
13878
  applyBlockMigration = request => this.client.fetch({
13772
13879
  body: JSON.stringify(marshalApplyBlockMigrationRequest(request, this.client.settings)),
13773
- headers: jsonContentHeaders$g,
13880
+ headers: jsonContentHeaders$h,
13774
13881
  method: 'POST',
13775
13882
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/block-migration/apply`
13776
13883
  });
@@ -13869,7 +13976,7 @@ const validateNotUndefined = obj => {
13869
13976
  if (obj === undefined) throw new TypeError(`object was found undefined`);
13870
13977
  return obj;
13871
13978
  };
13872
- class InstanceV1UtilsAPI extends API$h {
13979
+ class InstanceV1UtilsAPI extends API$i {
13873
13980
  /**
13874
13981
  * Waits for {@link Image} to be in a final state.
13875
13982
  *
@@ -14226,7 +14333,7 @@ class InstanceV1UtilsAPI extends API$h {
14226
14333
  });
14227
14334
  }
14228
14335
 
14229
- var index$i = /*#__PURE__*/Object.freeze({
14336
+ var index$j = /*#__PURE__*/Object.freeze({
14230
14337
  __proto__: null,
14231
14338
  API: InstanceV1UtilsAPI,
14232
14339
  IMAGE_TRANSIENT_STATUSES: IMAGE_TRANSIENT_STATUSES$1,
@@ -14240,9 +14347,9 @@ var index$i = /*#__PURE__*/Object.freeze({
14240
14347
  VOLUME_TRANSIENT_STATUSES: VOLUME_TRANSIENT_STATUSES
14241
14348
  });
14242
14349
 
14243
- var index$h = /*#__PURE__*/Object.freeze({
14350
+ var index$i = /*#__PURE__*/Object.freeze({
14244
14351
  __proto__: null,
14245
- v1: index$i
14352
+ v1: index$j
14246
14353
  });
14247
14354
 
14248
14355
  // This file was automatically generated. DO NOT EDIT.
@@ -14686,7 +14793,7 @@ const marshalUpdateRouteRequest$1 = (request, defaults) => ({
14686
14793
 
14687
14794
  // This file was automatically generated. DO NOT EDIT.
14688
14795
  // If you have any remark or suggestion do not hesitate to open an issue.
14689
- const jsonContentHeaders$f = {
14796
+ const jsonContentHeaders$g = {
14690
14797
  'Content-Type': 'application/json; charset=utf-8'
14691
14798
  };
14692
14799
 
@@ -14695,7 +14802,7 @@ const jsonContentHeaders$f = {
14695
14802
  *
14696
14803
  * This API allows you to manage IoT hubs and devices. IoT Hub API.
14697
14804
  */
14698
- let API$g = class API extends API$u {
14805
+ let API$h = class API extends API$v {
14699
14806
  /** Lists the available regions of the API. */
14700
14807
  static LOCALITIES = ['fr-par'];
14701
14808
  pageOfListHubs = (request = {}) => this.client.fetch({
@@ -14723,7 +14830,7 @@ let API$g = class API extends API$u {
14723
14830
  */
14724
14831
  createHub = request => this.client.fetch({
14725
14832
  body: JSON.stringify(marshalCreateHubRequest(request, this.client.settings)),
14726
- headers: jsonContentHeaders$f,
14833
+ headers: jsonContentHeaders$g,
14727
14834
  method: 'POST',
14728
14835
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/hubs`
14729
14836
  }, unmarshalHub);
@@ -14759,7 +14866,7 @@ let API$g = class API extends API$u {
14759
14866
  */
14760
14867
  updateHub = request => this.client.fetch({
14761
14868
  body: JSON.stringify(marshalUpdateHubRequest(request, this.client.settings)),
14762
- headers: jsonContentHeaders$f,
14869
+ headers: jsonContentHeaders$g,
14763
14870
  method: 'PATCH',
14764
14871
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/hubs/${validatePathParam('hubId', request.hubId)}`
14765
14872
  }, unmarshalHub);
@@ -14772,7 +14879,7 @@ let API$g = class API extends API$u {
14772
14879
  */
14773
14880
  enableHub = request => this.client.fetch({
14774
14881
  body: '{}',
14775
- headers: jsonContentHeaders$f,
14882
+ headers: jsonContentHeaders$g,
14776
14883
  method: 'POST',
14777
14884
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/hubs/${validatePathParam('hubId', request.hubId)}/enable`
14778
14885
  }, unmarshalHub);
@@ -14785,7 +14892,7 @@ let API$g = class API extends API$u {
14785
14892
  */
14786
14893
  disableHub = request => this.client.fetch({
14787
14894
  body: '{}',
14788
- headers: jsonContentHeaders$f,
14895
+ headers: jsonContentHeaders$g,
14789
14896
  method: 'POST',
14790
14897
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/hubs/${validatePathParam('hubId', request.hubId)}/disable`
14791
14898
  }, unmarshalHub);
@@ -14825,7 +14932,7 @@ let API$g = class API extends API$u {
14825
14932
  */
14826
14933
  setHubCA = request => this.client.fetch({
14827
14934
  body: JSON.stringify(marshalSetHubCARequest(request, this.client.settings)),
14828
- headers: jsonContentHeaders$f,
14935
+ headers: jsonContentHeaders$g,
14829
14936
  method: 'POST',
14830
14937
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/hubs/${validatePathParam('hubId', request.hubId)}/ca`
14831
14938
  }, unmarshalHub);
@@ -14865,7 +14972,7 @@ let API$g = class API extends API$u {
14865
14972
  */
14866
14973
  createDevice = request => this.client.fetch({
14867
14974
  body: JSON.stringify(marshalCreateDeviceRequest(request, this.client.settings)),
14868
- headers: jsonContentHeaders$f,
14975
+ headers: jsonContentHeaders$g,
14869
14976
  method: 'POST',
14870
14977
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/devices`
14871
14978
  }, unmarshalCreateDeviceResponse);
@@ -14892,7 +14999,7 @@ let API$g = class API extends API$u {
14892
14999
  */
14893
15000
  updateDevice = request => this.client.fetch({
14894
15001
  body: JSON.stringify(marshalUpdateDeviceRequest(request, this.client.settings)),
14895
- headers: jsonContentHeaders$f,
15002
+ headers: jsonContentHeaders$g,
14896
15003
  method: 'PATCH',
14897
15004
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/devices/${validatePathParam('deviceId', request.deviceId)}`
14898
15005
  }, unmarshalDevice);
@@ -14905,7 +15012,7 @@ let API$g = class API extends API$u {
14905
15012
  */
14906
15013
  enableDevice = request => this.client.fetch({
14907
15014
  body: '{}',
14908
- headers: jsonContentHeaders$f,
15015
+ headers: jsonContentHeaders$g,
14909
15016
  method: 'POST',
14910
15017
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/devices/${validatePathParam('deviceId', request.deviceId)}/enable`
14911
15018
  }, unmarshalDevice);
@@ -14918,7 +15025,7 @@ let API$g = class API extends API$u {
14918
15025
  */
14919
15026
  disableDevice = request => this.client.fetch({
14920
15027
  body: '{}',
14921
- headers: jsonContentHeaders$f,
15028
+ headers: jsonContentHeaders$g,
14922
15029
  method: 'POST',
14923
15030
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/devices/${validatePathParam('deviceId', request.deviceId)}/disable`
14924
15031
  }, unmarshalDevice);
@@ -14932,7 +15039,7 @@ let API$g = class API extends API$u {
14932
15039
  */
14933
15040
  renewDeviceCertificate = request => this.client.fetch({
14934
15041
  body: '{}',
14935
- headers: jsonContentHeaders$f,
15042
+ headers: jsonContentHeaders$g,
14936
15043
  method: 'POST',
14937
15044
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/devices/${validatePathParam('deviceId', request.deviceId)}/renew-certificate`
14938
15045
  }, unmarshalRenewDeviceCertificateResponse);
@@ -14946,7 +15053,7 @@ let API$g = class API extends API$u {
14946
15053
  */
14947
15054
  setDeviceCertificate = request => this.client.fetch({
14948
15055
  body: JSON.stringify(marshalSetDeviceCertificateRequest(request, this.client.settings)),
14949
- headers: jsonContentHeaders$f,
15056
+ headers: jsonContentHeaders$g,
14950
15057
  method: 'PUT',
14951
15058
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/devices/${validatePathParam('deviceId', request.deviceId)}/certificate`
14952
15059
  }, unmarshalSetDeviceCertificateResponse);
@@ -15021,7 +15128,7 @@ let API$g = class API extends API$u {
15021
15128
  */
15022
15129
  createRoute = request => this.client.fetch({
15023
15130
  body: JSON.stringify(marshalCreateRouteRequest$1(request, this.client.settings)),
15024
- headers: jsonContentHeaders$f,
15131
+ headers: jsonContentHeaders$g,
15025
15132
  method: 'POST',
15026
15133
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/routes`
15027
15134
  }, unmarshalRoute$1);
@@ -15035,7 +15142,7 @@ let API$g = class API extends API$u {
15035
15142
  */
15036
15143
  updateRoute = request => this.client.fetch({
15037
15144
  body: JSON.stringify(marshalUpdateRouteRequest$1(request, this.client.settings)),
15038
- headers: jsonContentHeaders$f,
15145
+ headers: jsonContentHeaders$g,
15039
15146
  method: 'PATCH',
15040
15147
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/routes/${validatePathParam('routeId', request.routeId)}`
15041
15148
  }, unmarshalRoute$1);
@@ -15087,7 +15194,7 @@ let API$g = class API extends API$u {
15087
15194
  */
15088
15195
  createNetwork = request => this.client.fetch({
15089
15196
  body: JSON.stringify(marshalCreateNetworkRequest(request, this.client.settings)),
15090
- headers: jsonContentHeaders$f,
15197
+ headers: jsonContentHeaders$g,
15091
15198
  method: 'POST',
15092
15199
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/networks`
15093
15200
  }, unmarshalCreateNetworkResponse);
@@ -15135,7 +15242,7 @@ let API$g = class API extends API$u {
15135
15242
  */
15136
15243
  putTwinDocument = request => this.client.fetch({
15137
15244
  body: JSON.stringify(marshalPutTwinDocumentRequest(request, this.client.settings)),
15138
- headers: jsonContentHeaders$f,
15245
+ headers: jsonContentHeaders$g,
15139
15246
  method: 'PUT',
15140
15247
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/twins/${validatePathParam('twinId', request.twinId)}/documents/${validatePathParam('documentName', request.documentName)}`
15141
15248
  }, unmarshalTwinDocument);
@@ -15148,7 +15255,7 @@ let API$g = class API extends API$u {
15148
15255
  */
15149
15256
  patchTwinDocument = request => this.client.fetch({
15150
15257
  body: JSON.stringify(marshalPatchTwinDocumentRequest(request, this.client.settings)),
15151
- headers: jsonContentHeaders$f,
15258
+ headers: jsonContentHeaders$g,
15152
15259
  method: 'PATCH',
15153
15260
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/twins/${validatePathParam('twinId', request.twinId)}/documents/${validatePathParam('documentName', request.documentName)}`
15154
15261
  }, unmarshalTwinDocument);
@@ -15188,10 +15295,203 @@ let API$g = class API extends API$u {
15188
15295
  // This file was automatically generated. DO NOT EDIT.
15189
15296
  // If you have any remark or suggestion do not hesitate to open an issue.
15190
15297
 
15298
+ var index_gen$g = /*#__PURE__*/Object.freeze({
15299
+ __proto__: null,
15300
+ API: API$h,
15301
+ HUB_TRANSIENT_STATUSES: HUB_TRANSIENT_STATUSES
15302
+ });
15303
+
15304
+ var index$h = /*#__PURE__*/Object.freeze({
15305
+ __proto__: null,
15306
+ v1: index_gen$g
15307
+ });
15308
+
15309
+ // This file was automatically generated. DO NOT EDIT.
15310
+ // If you have any remark or suggestion do not hesitate to open an issue.
15311
+ const unmarshalResource = data => {
15312
+ if (!isJSONObject(data)) {
15313
+ throw new TypeError(`Unmarshalling the type 'Resource' failed as data isn't a dictionary.`);
15314
+ }
15315
+ return {
15316
+ id: data.id,
15317
+ macAddress: data.mac_address,
15318
+ name: data.name,
15319
+ type: data.type
15320
+ };
15321
+ };
15322
+ const unmarshalSource = data => {
15323
+ if (!isJSONObject(data)) {
15324
+ throw new TypeError(`Unmarshalling the type 'Source' failed as data isn't a dictionary.`);
15325
+ }
15326
+ return {
15327
+ privateNetworkId: data.private_network_id,
15328
+ subnetId: data.subnet_id,
15329
+ zonal: data.zonal
15330
+ };
15331
+ };
15332
+ const unmarshalIP$1 = data => {
15333
+ if (!isJSONObject(data)) {
15334
+ throw new TypeError(`Unmarshalling the type 'IP' failed as data isn't a dictionary.`);
15335
+ }
15336
+ return {
15337
+ address: data.address,
15338
+ createdAt: unmarshalDate(data.created_at),
15339
+ id: data.id,
15340
+ isIpv6: data.is_ipv6,
15341
+ projectId: data.project_id,
15342
+ region: data.region,
15343
+ resource: data.resource ? unmarshalResource(data.resource) : undefined,
15344
+ source: data.source ? unmarshalSource(data.source) : undefined,
15345
+ tags: data.tags,
15346
+ updatedAt: unmarshalDate(data.updated_at),
15347
+ zone: data.zone
15348
+ };
15349
+ };
15350
+ const unmarshalListIPsResponse$1 = data => {
15351
+ if (!isJSONObject(data)) {
15352
+ throw new TypeError(`Unmarshalling the type 'ListIPsResponse' failed as data isn't a dictionary.`);
15353
+ }
15354
+ return {
15355
+ ips: unmarshalArrayOfObject(data.ips, unmarshalIP$1),
15356
+ totalCount: data.total_count
15357
+ };
15358
+ };
15359
+ const marshalSource = (request, defaults) => ({
15360
+ ...resolveOneOf([{
15361
+ param: 'zonal',
15362
+ value: request.zonal
15363
+ }, {
15364
+ param: 'private_network_id',
15365
+ value: request.privateNetworkId
15366
+ }, {
15367
+ param: 'subnet_id',
15368
+ value: request.subnetId
15369
+ }])
15370
+ });
15371
+ const marshalBookIPRequest = (request, defaults) => ({
15372
+ address: request.address,
15373
+ is_ipv6: request.isIpv6,
15374
+ project_id: request.projectId ?? defaults.defaultProjectId,
15375
+ source: request.source ? marshalSource(request.source) : undefined,
15376
+ tags: request.tags
15377
+ });
15378
+ const marshalUpdateIPRequest$1 = (request, defaults) => ({
15379
+ tags: request.tags
15380
+ });
15381
+
15382
+ // This file was automatically generated. DO NOT EDIT.
15383
+ // If you have any remark or suggestion do not hesitate to open an issue.
15384
+ const jsonContentHeaders$f = {
15385
+ 'Content-Type': 'application/json; charset=utf-8'
15386
+ };
15387
+
15388
+ /**
15389
+ * IPAM API.
15390
+ *
15391
+ * This API allows you to manage IP addresses with Scaleway's IP Address
15392
+ * Management tool. IPAM API.
15393
+ */
15394
+ let API$g = class API extends API$v {
15395
+ /** Lists the available regions of the API. */
15396
+ static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
15397
+
15398
+ /**
15399
+ * Book a new IP. Book a new IP from the specified source. Currently IPs can
15400
+ * only be booked from a Private Network.
15401
+ *
15402
+ * @param request - The request {@link BookIPRequest}
15403
+ * @returns A Promise of IP
15404
+ */
15405
+ bookIP = request => this.client.fetch({
15406
+ body: JSON.stringify(marshalBookIPRequest(request, this.client.settings)),
15407
+ headers: jsonContentHeaders$f,
15408
+ method: 'POST',
15409
+ path: `/ipam/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/ips`
15410
+ }, unmarshalIP$1);
15411
+
15412
+ /**
15413
+ * Release an IP. Release an IP not currently attached to a resource, and
15414
+ * returns it to the available IP pool.
15415
+ *
15416
+ * @param request - The request {@link ReleaseIPRequest}
15417
+ */
15418
+ releaseIP = request => this.client.fetch({
15419
+ body: '{}',
15420
+ headers: jsonContentHeaders$f,
15421
+ method: 'DELETE',
15422
+ path: `/ipam/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/ips/${validatePathParam('ipId', request.ipId)}`
15423
+ });
15424
+
15425
+ /**
15426
+ * Get an IP. Retrieve details of an existing IP, specified by its IP ID.
15427
+ *
15428
+ * @param request - The request {@link GetIPRequest}
15429
+ * @returns A Promise of IP
15430
+ */
15431
+ getIP = request => this.client.fetch({
15432
+ method: 'GET',
15433
+ path: `/ipam/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/ips/${validatePathParam('ipId', request.ipId)}`
15434
+ }, unmarshalIP$1);
15435
+
15436
+ /**
15437
+ * Update an IP. Update parameters including tags of the specified IP.
15438
+ *
15439
+ * @param request - The request {@link UpdateIPRequest}
15440
+ * @returns A Promise of IP
15441
+ */
15442
+ updateIP = request => this.client.fetch({
15443
+ body: JSON.stringify(marshalUpdateIPRequest$1(request, this.client.settings)),
15444
+ headers: jsonContentHeaders$f,
15445
+ method: 'PATCH',
15446
+ path: `/ipam/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/ips/${validatePathParam('ipId', request.ipId)}`
15447
+ }, unmarshalIP$1);
15448
+ pageOfListIPs = (request = {}) => this.client.fetch({
15449
+ method: 'GET',
15450
+ path: `/ipam/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/ips`,
15451
+ urlParams: urlParams(['attached', request.attached], ['is_ipv6', request.isIpv6], ['mac_address', request.macAddress], ['order_by', request.orderBy ?? 'created_at_desc'], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId], ['resource_id', request.resourceId], ['resource_name', request.resourceName], ['resource_type', request.resourceType ?? 'unknown_type'], ['tags', request.tags], ...Object.entries(resolveOneOf([{
15452
+ param: 'zonal',
15453
+ value: request.zonal
15454
+ }, {
15455
+ param: 'private_network_id',
15456
+ value: request.privateNetworkId
15457
+ }])))
15458
+ }, unmarshalListIPsResponse$1);
15459
+
15460
+ /**
15461
+ * List existing IPs. List existing IPs in the specified region using various
15462
+ * filters. For example, you can filter for IPs within a specified Private
15463
+ * Network, or for public IPs within a specified Project. By default, the IPs
15464
+ * returned in the list are ordered by creation date in ascending order,
15465
+ * though this can be modified via the order_by field.
15466
+ *
15467
+ * @param request - The request {@link ListIPsRequest}
15468
+ * @returns A Promise of ListIPsResponse
15469
+ */
15470
+ listIPs = (request = {}) => enrichForPagination('ips', this.pageOfListIPs, request);
15471
+ };
15472
+
15473
+ // This file was automatically generated. DO NOT EDIT.
15474
+ // If you have any remark or suggestion do not hesitate to open an issue.
15475
+
15476
+ const ListIPsRequest = {
15477
+ resourceName: {
15478
+ maxLength: 63,
15479
+ minLength: 2
15480
+ }
15481
+ };
15482
+
15483
+ var validationRules_gen$4 = /*#__PURE__*/Object.freeze({
15484
+ __proto__: null,
15485
+ ListIPsRequest: ListIPsRequest
15486
+ });
15487
+
15488
+ // This file was automatically generated. DO NOT EDIT.
15489
+ // If you have any remark or suggestion do not hesitate to open an issue.
15490
+
15191
15491
  var index_gen$f = /*#__PURE__*/Object.freeze({
15192
15492
  __proto__: null,
15193
15493
  API: API$g,
15194
- HUB_TRANSIENT_STATUSES: HUB_TRANSIENT_STATUSES
15494
+ ValidationRules: validationRules_gen$4
15195
15495
  });
15196
15496
 
15197
15497
  var index$g = /*#__PURE__*/Object.freeze({
@@ -15202,6 +15502,9 @@ var index$g = /*#__PURE__*/Object.freeze({
15202
15502
  // This file was automatically generated. DO NOT EDIT.
15203
15503
  // If you have any remark or suggestion do not hesitate to open an issue.
15204
15504
 
15505
+ /** Lists transient statutes of the enum {@link NameStatus}. */
15506
+ const NAME_TRANSIENT_STATUSES = ['queued', 'publishing'];
15507
+
15205
15508
  /** Lists transient statutes of the enum {@link PinStatus}. */
15206
15509
  const PIN_TRANSIENT_STATUSES = ['queued', 'pinning'];
15207
15510
 
@@ -15238,6 +15541,23 @@ const unmarshalPinInfo = data => {
15238
15541
  url: data.url
15239
15542
  };
15240
15543
  };
15544
+ const unmarshalName = data => {
15545
+ if (!isJSONObject(data)) {
15546
+ throw new TypeError(`Unmarshalling the type 'Name' failed as data isn't a dictionary.`);
15547
+ }
15548
+ return {
15549
+ createdAt: unmarshalDate(data.created_at),
15550
+ key: data.key,
15551
+ name: data.name,
15552
+ nameId: data.name_id,
15553
+ projectId: data.project_id,
15554
+ region: data.region,
15555
+ status: data.status,
15556
+ tags: data.tags,
15557
+ updatedAt: unmarshalDate(data.updated_at),
15558
+ value: data.value
15559
+ };
15560
+ };
15241
15561
  const unmarshalPin = data => {
15242
15562
  if (!isJSONObject(data)) {
15243
15563
  throw new TypeError(`Unmarshalling the type 'Pin' failed as data isn't a dictionary.`);
@@ -15267,6 +15587,28 @@ const unmarshalVolume$1 = data => {
15267
15587
  updatedAt: unmarshalDate(data.updated_at)
15268
15588
  };
15269
15589
  };
15590
+ const unmarshalExportKeyNameResponse = data => {
15591
+ if (!isJSONObject(data)) {
15592
+ throw new TypeError(`Unmarshalling the type 'ExportKeyNameResponse' failed as data isn't a dictionary.`);
15593
+ }
15594
+ return {
15595
+ createdAt: unmarshalDate(data.created_at),
15596
+ nameId: data.name_id,
15597
+ privateKey: data.private_key,
15598
+ projectId: data.project_id,
15599
+ publicKey: data.public_key,
15600
+ updatedAt: unmarshalDate(data.updated_at)
15601
+ };
15602
+ };
15603
+ const unmarshalListNamesResponse = data => {
15604
+ if (!isJSONObject(data)) {
15605
+ throw new TypeError(`Unmarshalling the type 'ListNamesResponse' failed as data isn't a dictionary.`);
15606
+ }
15607
+ return {
15608
+ names: unmarshalArrayOfObject(data.names, unmarshalName),
15609
+ totalCount: data.total_count
15610
+ };
15611
+ };
15270
15612
  const unmarshalListPinsResponse = data => {
15271
15613
  if (!isJSONObject(data)) {
15272
15614
  throw new TypeError(`Unmarshalling the type 'ListPinsResponse' failed as data isn't a dictionary.`);
@@ -15314,6 +15656,22 @@ const marshalCreateVolumeRequest = (request, defaults) => ({
15314
15656
  name: request.name,
15315
15657
  project_id: request.projectId ?? defaults.defaultProjectId
15316
15658
  });
15659
+ const marshalIpnsApiCreateNameRequest = (request, defaults) => ({
15660
+ name: request.name,
15661
+ project_id: request.projectId ?? defaults.defaultProjectId,
15662
+ value: request.value
15663
+ });
15664
+ const marshalIpnsApiImportKeyNameRequest = (request, defaults) => ({
15665
+ name: request.name,
15666
+ private_key: request.privateKey,
15667
+ project_id: request.projectId ?? defaults.defaultProjectId,
15668
+ value: request.value
15669
+ });
15670
+ const marshalIpnsApiUpdateNameRequest = (request, defaults) => ({
15671
+ name: request.name,
15672
+ tags: request.tags,
15673
+ value: request.value
15674
+ });
15317
15675
  const marshalReplacePinRequest = (request, defaults) => ({
15318
15676
  cid: request.cid,
15319
15677
  name: request.name,
@@ -15333,7 +15691,7 @@ const jsonContentHeaders$e = {
15333
15691
  };
15334
15692
 
15335
15693
  /** IPFS Pinning service API. */
15336
- let API$f = class API extends API$u {
15694
+ let API$f = class API extends API$v {
15337
15695
  /** Lists the available regions of the API. */
15338
15696
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
15339
15697
 
@@ -15499,12 +15857,115 @@ let API$f = class API extends API$u {
15499
15857
  });
15500
15858
  };
15501
15859
 
15860
+ /** IPFS Naming service API. */
15861
+ class IpnsAPI extends API$v {
15862
+ /** Lists the available regions of the API. */
15863
+ static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
15864
+
15865
+ /**
15866
+ * Create a new name. You can use the `ipns key` command to list and generate
15867
+ * more names and their respective keys.
15868
+ *
15869
+ * @param request - The request {@link IpnsApiCreateNameRequest}
15870
+ * @returns A Promise of Name
15871
+ */
15872
+ createName = request => this.client.fetch({
15873
+ body: JSON.stringify(marshalIpnsApiCreateNameRequest(request, this.client.settings)),
15874
+ headers: jsonContentHeaders$e,
15875
+ method: 'POST',
15876
+ path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names`
15877
+ }, unmarshalName);
15878
+
15879
+ /**
15880
+ * Get information about a name. Retrieve information about a specific name.
15881
+ *
15882
+ * @param request - The request {@link IpnsApiGetNameRequest}
15883
+ * @returns A Promise of Name
15884
+ */
15885
+ getName = request => this.client.fetch({
15886
+ method: 'GET',
15887
+ path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names/${validatePathParam('nameId', request.nameId)}`
15888
+ }, unmarshalName);
15889
+
15890
+ /**
15891
+ * Waits for {@link Name} to be in a final state.
15892
+ *
15893
+ * @param request - The request {@link GetNameRequest}
15894
+ * @param options - The waiting options
15895
+ * @returns A Promise of Name
15896
+ */
15897
+ waitForName = (request, options) => waitForResource(options?.stop ?? (res => Promise.resolve(!NAME_TRANSIENT_STATUSES.includes(res.status))), this.getName, request, options);
15898
+
15899
+ /**
15900
+ * Delete an existing name. Delete a name by its ID.
15901
+ *
15902
+ * @param request - The request {@link IpnsApiDeleteNameRequest}
15903
+ */
15904
+ deleteName = request => this.client.fetch({
15905
+ method: 'DELETE',
15906
+ path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names/${validatePathParam('nameId', request.nameId)}`
15907
+ });
15908
+ pageOfListNames = (request = {}) => this.client.fetch({
15909
+ method: 'GET',
15910
+ path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names`,
15911
+ urlParams: urlParams(['order_by', request.orderBy ?? 'created_at_asc'], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId])
15912
+ }, unmarshalListNamesResponse);
15913
+
15914
+ /**
15915
+ * List all names by a Project ID. Retrieve information about all names from a
15916
+ * Project ID.
15917
+ *
15918
+ * @param request - The request {@link IpnsApiListNamesRequest}
15919
+ * @returns A Promise of ListNamesResponse
15920
+ */
15921
+ listNames = (request = {}) => enrichForPagination('names', this.pageOfListNames, request);
15922
+
15923
+ /**
15924
+ * Update name information. Update name information (CID, tag, name...).
15925
+ *
15926
+ * @param request - The request {@link IpnsApiUpdateNameRequest}
15927
+ * @returns A Promise of Name
15928
+ */
15929
+ updateName = request => this.client.fetch({
15930
+ body: JSON.stringify(marshalIpnsApiUpdateNameRequest(request, this.client.settings)),
15931
+ headers: jsonContentHeaders$e,
15932
+ method: 'PATCH',
15933
+ path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names/${validatePathParam('nameId', request.nameId)}`
15934
+ }, unmarshalName);
15935
+
15936
+ /**
15937
+ * Export your private key. Export a private key by its ID.
15938
+ *
15939
+ * @param request - The request {@link IpnsApiExportKeyNameRequest}
15940
+ * @returns A Promise of ExportKeyNameResponse
15941
+ */
15942
+ exportKeyName = request => this.client.fetch({
15943
+ method: 'GET',
15944
+ path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names/${validatePathParam('nameId', request.nameId)}/export-key`
15945
+ }, unmarshalExportKeyNameResponse);
15946
+
15947
+ /**
15948
+ * Import your private key. Import a private key.
15949
+ *
15950
+ * @param request - The request {@link IpnsApiImportKeyNameRequest}
15951
+ * @returns A Promise of Name
15952
+ */
15953
+ importKeyName = request => this.client.fetch({
15954
+ body: JSON.stringify(marshalIpnsApiImportKeyNameRequest(request, this.client.settings)),
15955
+ headers: jsonContentHeaders$e,
15956
+ method: 'POST',
15957
+ path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names/import-key`
15958
+ }, unmarshalName);
15959
+ }
15960
+
15502
15961
  // This file was automatically generated. DO NOT EDIT.
15503
15962
  // If you have any remark or suggestion do not hesitate to open an issue.
15504
15963
 
15505
15964
  var index_gen$e = /*#__PURE__*/Object.freeze({
15506
15965
  __proto__: null,
15507
15966
  API: API$f,
15967
+ IpnsAPI: IpnsAPI,
15968
+ NAME_TRANSIENT_STATUSES: NAME_TRANSIENT_STATUSES,
15508
15969
  PIN_TRANSIENT_STATUSES: PIN_TRANSIENT_STATUSES
15509
15970
  });
15510
15971
 
@@ -15948,7 +16409,7 @@ const jsonContentHeaders$d = {
15948
16409
  };
15949
16410
 
15950
16411
  /** Kubernetes API. */
15951
- let API$e = class API extends API$u {
16412
+ let API$e = class API extends API$v {
15952
16413
  /** Lists the available regions of the API. */
15953
16414
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
15954
16415
  pageOfListClusters = (request = {}) => this.client.fetch({
@@ -17547,7 +18008,7 @@ const jsonContentHeaders$c = {
17547
18008
  *
17548
18009
  * This API allows you to manage your load balancer service. Load balancer API.
17549
18010
  */
17550
- let API$d = class API extends API$u {
18011
+ let API$d = class API extends API$v {
17551
18012
  /** Lists the available regions of the API. */
17552
18013
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
17553
18014
  pageOfListLbs = (request = {}) => this.client.fetch({
@@ -18224,7 +18685,7 @@ let API$d = class API extends API$u {
18224
18685
  * This API allows you to manage your Scaleway Load Balancer services. Load
18225
18686
  * Balancer API.
18226
18687
  */
18227
- class ZonedAPI extends API$u {
18688
+ class ZonedAPI extends API$v {
18228
18689
  /** Lists the available zones of the API. */
18229
18690
  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'];
18230
18691
  pageOfListLbs = (request = {}) => this.client.fetch({
@@ -19204,7 +19665,7 @@ const unmarshalListVersionsResponse$1 = data => {
19204
19665
  // This file was automatically generated. DO NOT EDIT.
19205
19666
  // If you have any remark or suggestion do not hesitate to open an issue.
19206
19667
  /** Marketplace API. */
19207
- let API$c = class API extends API$u {
19668
+ let API$c = class API extends API$v {
19208
19669
  pageOfListImages = (request = {}) => this.client.fetch({
19209
19670
  method: 'GET',
19210
19671
  path: `/marketplace/v1/images`,
@@ -19340,7 +19801,7 @@ const unmarshalListVersionsResponse = data => {
19340
19801
  // This file was automatically generated. DO NOT EDIT.
19341
19802
  // If you have any remark or suggestion do not hesitate to open an issue.
19342
19803
  /** Marketplace API. */
19343
- let API$b = class API extends API$u {
19804
+ let API$b = class API extends API$v {
19344
19805
  pageOfListImages = request => this.client.fetch({
19345
19806
  method: 'GET',
19346
19807
  path: `/marketplace/v2/images`,
@@ -19608,7 +20069,7 @@ const jsonContentHeaders$b = {
19608
20069
  * This API allows you to manage Scaleway Messaging and Queueing brokers.
19609
20070
  * Messaging and Queuing API.
19610
20071
  */
19611
- let API$a = class API extends API$u {
20072
+ let API$a = class API extends API$v {
19612
20073
  /** Lists the available regions of the API. */
19613
20074
  static LOCALITIES = ['fr-par'];
19614
20075
  pageOfListNamespaces = (request = {}) => this.client.fetch({
@@ -19983,7 +20444,7 @@ const jsonContentHeaders$a = {
19983
20444
  * This API allows you to manage Scaleway Messaging and Queueing NATS accounts.
19984
20445
  * Messaging and Queuing NATS API.
19985
20446
  */
19986
- class NatsAPI extends API$u {
20447
+ class NatsAPI extends API$v {
19987
20448
  /** Lists the available regions of the API. */
19988
20449
  static LOCALITIES = ['fr-par'];
19989
20450
 
@@ -20120,7 +20581,7 @@ class NatsAPI extends API$u {
20120
20581
  * This API allows you to manage Scaleway Messaging and Queueing SNS brokers.
20121
20582
  * Messaging and Queuing SNS API.
20122
20583
  */
20123
- class SnsAPI extends API$u {
20584
+ class SnsAPI extends API$v {
20124
20585
  /** Lists the available regions of the API. */
20125
20586
  static LOCALITIES = ['fr-par'];
20126
20587
 
@@ -20243,7 +20704,7 @@ class SnsAPI extends API$u {
20243
20704
  * This API allows you to manage Scaleway Messaging and Queueing SQS brokers.
20244
20705
  * Messaging and Queuing SQS API.
20245
20706
  */
20246
- class SqsAPI extends API$u {
20707
+ class SqsAPI extends API$v {
20247
20708
  /** Lists the available regions of the API. */
20248
20709
  static LOCALITIES = ['fr-par'];
20249
20710
 
@@ -20372,7 +20833,7 @@ const NatsApiCreateNatsAccountRequest = {
20372
20833
  };
20373
20834
  const NatsApiCreateNatsCredentialsRequest = {
20374
20835
  name: {
20375
- maxLength: 64,
20836
+ maxLength: 500,
20376
20837
  minLength: 1
20377
20838
  }
20378
20839
  };
@@ -20384,25 +20845,25 @@ const NatsApiUpdateNatsAccountRequest = {
20384
20845
  };
20385
20846
  const SnsApiCreateSnsCredentialsRequest = {
20386
20847
  name: {
20387
- maxLength: 64,
20848
+ maxLength: 500,
20388
20849
  minLength: 1
20389
20850
  }
20390
20851
  };
20391
20852
  const SnsApiUpdateSnsCredentialsRequest = {
20392
20853
  name: {
20393
- maxLength: 64,
20854
+ maxLength: 500,
20394
20855
  minLength: 1
20395
20856
  }
20396
20857
  };
20397
20858
  const SqsApiCreateSqsCredentialsRequest = {
20398
20859
  name: {
20399
- maxLength: 64,
20860
+ maxLength: 500,
20400
20861
  minLength: 1
20401
20862
  }
20402
20863
  };
20403
20864
  const SqsApiUpdateSqsCredentialsRequest = {
20404
20865
  name: {
20405
- maxLength: 64,
20866
+ maxLength: 500,
20406
20867
  minLength: 1
20407
20868
  }
20408
20869
  };
@@ -21151,7 +21612,7 @@ const jsonContentHeaders$9 = {
21151
21612
  };
21152
21613
 
21153
21614
  /** Managed Database for PostgreSQL and MySQL API. */
21154
- let API$9 = class API extends API$u {
21615
+ let API$9 = class API extends API$v {
21155
21616
  /** Lists the available regions of the API. */
21156
21617
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
21157
21618
  pageOfListDatabaseEngines = (request = {}) => this.client.fetch({
@@ -22368,7 +22829,7 @@ const jsonContentHeaders$8 = {
22368
22829
  };
22369
22830
 
22370
22831
  /** Managed Database for Redis™ API. */
22371
- let API$8 = class API extends API$u {
22832
+ let API$8 = class API extends API$v {
22372
22833
  /** Lists the available zones of the API. */
22373
22834
  static LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1', 'nl-ams-2', 'pl-waw-1', 'pl-waw-2'];
22374
22835
 
@@ -22862,7 +23323,7 @@ const jsonContentHeaders$7 = {
22862
23323
  };
22863
23324
 
22864
23325
  /** Container Registry API. */
22865
- let API$7 = class API extends API$u {
23326
+ let API$7 = class API extends API$v {
22866
23327
  /** Lists the available regions of the API. */
22867
23328
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
22868
23329
  pageOfListNamespaces = (request = {}) => this.client.fetch({
@@ -23244,7 +23705,7 @@ const jsonContentHeaders$6 = {
23244
23705
  * Secret Manager API. This API allows you to conveniently store, access and
23245
23706
  * share sensitive data.
23246
23707
  */
23247
- let API$6 = class API extends API$u {
23708
+ let API$6 = class API extends API$v {
23248
23709
  /** Lists the available regions of the API. */
23249
23710
  static LOCALITIES = ['fr-par'];
23250
23711
 
@@ -23709,7 +24170,7 @@ const jsonContentHeaders$5 = {
23709
24170
  * access-key. Then, you can use other test commands by setting the
23710
24171
  * SCW_SECRET_KEY env variable.
23711
24172
  */
23712
- let API$5 = class API extends API$u {
24173
+ let API$5 = class API extends API$v {
23713
24174
  /**
23714
24175
  * Register a user. Register a human and return a access-key and a secret-key
23715
24176
  * that must be used in all other commands.
@@ -23851,6 +24312,18 @@ const EMAIL_TRANSIENT_STATUSES = ['new', 'sending'];
23851
24312
 
23852
24313
  // This file was automatically generated. DO NOT EDIT.
23853
24314
  // If you have any remark or suggestion do not hesitate to open an issue.
24315
+ const unmarshalDomainReputation = data => {
24316
+ if (!isJSONObject(data)) {
24317
+ throw new TypeError(`Unmarshalling the type 'DomainReputation' failed as data isn't a dictionary.`);
24318
+ }
24319
+ return {
24320
+ previousScore: data.previous_score,
24321
+ previousScoredAt: unmarshalDate(data.previous_scored_at),
24322
+ score: data.score,
24323
+ scoredAt: unmarshalDate(data.scored_at),
24324
+ status: data.status
24325
+ };
24326
+ };
23854
24327
  const unmarshalDomainStatistics = data => {
23855
24328
  if (!isJSONObject(data)) {
23856
24329
  throw new TypeError(`Unmarshalling the type 'DomainStatistics' failed as data isn't a dictionary.`);
@@ -23888,6 +24361,7 @@ const unmarshalDomain = data => {
23888
24361
  organizationId: data.organization_id,
23889
24362
  projectId: data.project_id,
23890
24363
  region: data.region,
24364
+ reputation: data.reputation ? unmarshalDomainReputation(data.reputation) : undefined,
23891
24365
  revokedAt: unmarshalDate(data.revoked_at),
23892
24366
  spfConfig: data.spf_config,
23893
24367
  statistics: data.statistics ? unmarshalDomainStatistics(data.statistics) : undefined,
@@ -24020,7 +24494,7 @@ const jsonContentHeaders$4 = {
24020
24494
  };
24021
24495
 
24022
24496
  /** Transactional Email API. */
24023
- let API$4 = class API extends API$u {
24497
+ let API$4 = class API extends API$v {
24024
24498
  /** Lists the available regions of the API. */
24025
24499
  static LOCALITIES = ['fr-par'];
24026
24500
 
@@ -24255,7 +24729,7 @@ const jsonContentHeaders$3 = {
24255
24729
  };
24256
24730
 
24257
24731
  /** VPC API. */
24258
- let API$3 = class API extends API$u {
24732
+ let API$3 = class API extends API$v {
24259
24733
  /** Lists the available zones of the API. */
24260
24734
  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'];
24261
24735
  pageOfListPrivateNetworks = (request = {}) => this.client.fetch({
@@ -24475,7 +24949,7 @@ const jsonContentHeaders$2 = {
24475
24949
  };
24476
24950
 
24477
24951
  /** VPC API. */
24478
- let API$2 = class API extends API$u {
24952
+ let API$2 = class API extends API$v {
24479
24953
  /** Lists the available regions of the API. */
24480
24954
  static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
24481
24955
  pageOfListVPCs = (request = {}) => this.client.fetch({
@@ -24733,6 +25207,14 @@ const unmarshalDHCP = data => {
24733
25207
  zone: data.zone
24734
25208
  };
24735
25209
  };
25210
+ const unmarshalIpamConfig = data => {
25211
+ if (!isJSONObject(data)) {
25212
+ throw new TypeError(`Unmarshalling the type 'IpamConfig' failed as data isn't a dictionary.`);
25213
+ }
25214
+ return {
25215
+ pushDefaultRoute: data.push_default_route
25216
+ };
25217
+ };
24736
25218
  const unmarshalGatewayNetwork = data => {
24737
25219
  if (!isJSONObject(data)) {
24738
25220
  throw new TypeError(`Unmarshalling the type 'GatewayNetwork' failed as data isn't a dictionary.`);
@@ -24745,6 +25227,7 @@ const unmarshalGatewayNetwork = data => {
24745
25227
  enableMasquerade: data.enable_masquerade,
24746
25228
  gatewayId: data.gateway_id,
24747
25229
  id: data.id,
25230
+ ipamConfig: data.ipam_config ? unmarshalIpamConfig(data.ipam_config) : undefined,
24748
25231
  macAddress: data.mac_address,
24749
25232
  privateNetworkId: data.private_network_id,
24750
25233
  status: data.status,
@@ -24807,6 +25290,7 @@ const unmarshalGateway = data => {
24807
25290
  gatewayNetworks: unmarshalArrayOfObject(data.gateway_networks, unmarshalGatewayNetwork),
24808
25291
  id: data.id,
24809
25292
  ip: data.ip ? unmarshalIP(data.ip) : undefined,
25293
+ isLegacy: data.is_legacy,
24810
25294
  name: data.name,
24811
25295
  organizationId: data.organization_id,
24812
25296
  projectId: data.project_id,
@@ -25056,7 +25540,7 @@ const jsonContentHeaders$1 = {
25056
25540
  };
25057
25541
 
25058
25542
  /** Public Gateways API. */
25059
- let API$1 = class API extends API$u {
25543
+ let API$1 = class API extends API$v {
25060
25544
  /** Lists the available zones of the API. */
25061
25545
  static LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1', 'nl-ams-2', 'nl-ams-3', 'pl-waw-1', 'pl-waw-2'];
25062
25546
  pageOfListGateways = (request = {}) => this.client.fetch({
@@ -25767,7 +26251,7 @@ const jsonContentHeaders = {
25767
26251
  };
25768
26252
 
25769
26253
  /** Web Hosting API. */
25770
- class API extends API$u {
26254
+ class API extends API$v {
25771
26255
  /** Lists the available regions of the API. */
25772
26256
  static LOCALITIES = ['fr-par'];
25773
26257
 
@@ -25927,23 +26411,24 @@ var index = /*#__PURE__*/Object.freeze({
25927
26411
  v1alpha1: index_gen
25928
26412
  });
25929
26413
 
25930
- exports.API = API$u;
25931
- exports.Account = index$v;
25932
- exports.AppleSilicon = index$u;
25933
- exports.BareMetal = index$s;
25934
- exports.Billing = index$r;
25935
- exports.Block = index$q;
25936
- exports.Cockpit = index$p;
25937
- exports.Container = index$o;
25938
- exports.DocumentDB = index$n;
25939
- exports.Domain = index$m;
25940
- exports.Errors = index$w;
25941
- exports.FlexibleIP = index$l;
25942
- exports.Function = index$k;
25943
- exports.IAM = index$j;
25944
- exports.IOT = index$g;
26414
+ exports.API = API$v;
26415
+ exports.Account = index$w;
26416
+ exports.AppleSilicon = index$v;
26417
+ exports.BareMetal = index$t;
26418
+ exports.Billing = index$s;
26419
+ exports.Block = index$r;
26420
+ exports.Cockpit = index$q;
26421
+ exports.Container = index$p;
26422
+ exports.DocumentDB = index$o;
26423
+ exports.Domain = index$n;
26424
+ exports.Errors = index$x;
26425
+ exports.FlexibleIP = index$m;
26426
+ exports.Function = index$l;
26427
+ exports.IAM = index$k;
26428
+ exports.IOT = index$h;
26429
+ exports.IPAM = index$g;
25945
26430
  exports.IPFS = index$f;
25946
- exports.Instance = index$h;
26431
+ exports.Instance = index$i;
25947
26432
  exports.K8S = index$d;
25948
26433
  exports.LB = index$b;
25949
26434
  exports.MNQ = index$9;