@scaleway/sdk 1.30.0 → 1.32.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.
Files changed (35) hide show
  1. package/dist/api/account/v2/marshalling.gen.js +1 -1
  2. package/dist/api/account/v3/marshalling.gen.js +1 -1
  3. package/dist/api/applesilicon/v1alpha1/marshalling.gen.js +1 -1
  4. package/dist/api/cockpit/v1beta1/api.gen.js +44 -40
  5. package/dist/api/cockpit/v1beta1/marshalling.gen.js +25 -4
  6. package/dist/api/container/v1beta1/marshalling.gen.js +1 -1
  7. package/dist/api/function/v1beta1/marshalling.gen.js +1 -1
  8. package/dist/api/iam/v1alpha1/marshalling.gen.js +1 -1
  9. package/dist/api/instance/v1/api.gen.js +3 -3
  10. package/dist/api/instance/v1/marshalling.gen.js +1 -1
  11. package/dist/api/iot/v1/marshalling.gen.js +1 -1
  12. package/dist/api/ipfs/v1alpha1/api.gen.js +2 -113
  13. package/dist/api/ipfs/v1alpha1/content.gen.js +1 -4
  14. package/dist/api/ipfs/v1alpha1/index.gen.js +1 -1
  15. package/dist/api/ipfs/v1alpha1/marshalling.gen.js +1 -55
  16. package/dist/api/k8s/v1/api.gen.js +1 -1
  17. package/dist/api/k8s/v1/marshalling.gen.js +1 -1
  18. package/dist/api/lb/v1/marshalling.gen.js +2 -1
  19. package/dist/api/mnq/v1alpha1/marshalling.gen.js +1 -1
  20. package/dist/api/rdb/v1/marshalling.gen.js +1 -1
  21. package/dist/api/redis/v1/marshalling.gen.js +1 -1
  22. package/dist/api/registry/v1/marshalling.gen.js +1 -1
  23. package/dist/api/secret/v1alpha1/api.gen.js +2 -2
  24. package/dist/api/vpc/v1/marshalling.gen.js +1 -1
  25. package/dist/api/vpc/v2/marshalling.gen.js +1 -1
  26. package/dist/api/vpcgw/v1/marshalling.gen.js +1 -1
  27. package/dist/api/webhosting/v1alpha1/marshalling.gen.js +1 -0
  28. package/dist/helpers/is-browser.js +3 -1
  29. package/dist/index.cjs +78 -202
  30. package/dist/index.d.ts +180 -241
  31. package/dist/scw/constants.js +1 -1
  32. package/node_modules/@scaleway/random-name/CHANGELOG.md +11 -13
  33. package/node_modules/@scaleway/random-name/package.json +7 -7
  34. package/package.json +3 -3
  35. /package/dist/node_modules/.pnpm/{@scaleway_random-name@4.0.1 → @scaleway_random-name@4.0.2}/node_modules/@scaleway/random-name/dist/index.js +0 -0
package/dist/index.cjs CHANGED
@@ -497,10 +497,12 @@ const assertValidSettings = obj => {
497
497
  }
498
498
  };
499
499
 
500
- const version = 'v1.29.0';
500
+ const version = 'v1.31.0';
501
501
  const userAgent = `scaleway-sdk-js/${version}`;
502
502
 
503
- const isBrowser = () => typeof window !== 'undefined' && typeof window.document !== 'undefined';
503
+ const isBrowser = () =>
504
+ // eslint-disable-next-line @typescript-eslint/prefer-optional-chain
505
+ typeof window !== 'undefined' && typeof window.document !== 'undefined';
504
506
 
505
507
  /**
506
508
  * Composes request interceptors.
@@ -3745,11 +3747,13 @@ const unmarshalTokenScopes = data => {
3745
3747
  return {
3746
3748
  queryLogs: data.query_logs,
3747
3749
  queryMetrics: data.query_metrics,
3750
+ queryTraces: data.query_traces,
3748
3751
  setupAlerts: data.setup_alerts,
3749
3752
  setupLogsRules: data.setup_logs_rules,
3750
3753
  setupMetricsRules: data.setup_metrics_rules,
3751
3754
  writeLogs: data.write_logs,
3752
- writeMetrics: data.write_metrics
3755
+ writeMetrics: data.write_metrics,
3756
+ writeTraces: data.write_traces
3753
3757
  };
3754
3758
  };
3755
3759
  const unmarshalCockpitEndpoints = data => {
@@ -3832,6 +3836,18 @@ const unmarshalCockpitMetrics = data => {
3832
3836
  timeseries: unmarshalArrayOfObject(data.timeseries, unmarshalTimeSeries)
3833
3837
  };
3834
3838
  };
3839
+ const unmarshalDatasource = data => {
3840
+ if (!isJSONObject(data)) {
3841
+ throw new TypeError(`Unmarshalling the type 'Datasource' failed as data isn't a dictionary.`);
3842
+ }
3843
+ return {
3844
+ id: data.id,
3845
+ name: data.name,
3846
+ projectId: data.project_id,
3847
+ type: data.type,
3848
+ url: data.url
3849
+ };
3850
+ };
3835
3851
  const unmarshalListContactPointsResponse = data => {
3836
3852
  if (!isJSONObject(data)) {
3837
3853
  throw new TypeError(`Unmarshalling the type 'ListContactPointsResponse' failed as data isn't a dictionary.`);
@@ -3888,11 +3904,13 @@ const marshalContactPoint = (request, defaults) => ({
3888
3904
  const marshalTokenScopes = (request, defaults) => ({
3889
3905
  query_logs: request.queryLogs,
3890
3906
  query_metrics: request.queryMetrics,
3907
+ query_traces: request.queryTraces,
3891
3908
  setup_alerts: request.setupAlerts,
3892
3909
  setup_logs_rules: request.setupLogsRules,
3893
3910
  setup_metrics_rules: request.setupMetricsRules,
3894
3911
  write_logs: request.writeLogs,
3895
- write_metrics: request.writeMetrics
3912
+ write_metrics: request.writeMetrics,
3913
+ write_traces: request.writeTraces
3896
3914
  });
3897
3915
  const marshalActivateCockpitRequest = (request, defaults) => ({
3898
3916
  project_id: request.projectId ?? defaults.defaultProjectId
@@ -3901,6 +3919,11 @@ const marshalCreateContactPointRequest = (request, defaults) => ({
3901
3919
  contact_point: request.contactPoint ? marshalContactPoint(request.contactPoint) : undefined,
3902
3920
  project_id: request.projectId ?? defaults.defaultProjectId
3903
3921
  });
3922
+ const marshalCreateDatasourceRequest = (request, defaults) => ({
3923
+ name: request.name,
3924
+ project_id: request.projectId ?? defaults.defaultProjectId,
3925
+ type: request.type ?? 'unknown_datasource_type'
3926
+ });
3904
3927
  const marshalCreateGrafanaUserRequest = (request, defaults) => ({
3905
3928
  login: request.login,
3906
3929
  project_id: request.projectId ?? defaults.defaultProjectId,
@@ -3950,13 +3973,13 @@ const jsonContentHeaders$l = {
3950
3973
  /**
3951
3974
  * Cockpit API.
3952
3975
  *
3953
- * Cockpit API. Cockpit's API allows you to activate your Cockpit on your
3954
- * Projects. Scaleway's Cockpit stores metrics and logs and provides a dedicated
3955
- * Grafana for dashboarding to visualize them.
3976
+ * Cockpit's API allows you to activate your Cockpit on your Projects.
3977
+ * Scaleway's Cockpit stores metrics and logs and provides a dedicated Grafana
3978
+ * for dashboarding to visualize them. Cockpit API.
3956
3979
  */
3957
3980
  let API$n = class API extends API$s {
3958
3981
  /**
3959
- * Activate a Cockpit. Activate the Cockpit of the specified Project ID.
3982
+ * Activate the Cockpit of the specified Project ID.
3960
3983
  *
3961
3984
  * @param request - The request {@link ActivateCockpitRequest}
3962
3985
  * @returns A Promise of Cockpit
@@ -3969,7 +3992,7 @@ let API$n = class API extends API$s {
3969
3992
  }, unmarshalCockpit);
3970
3993
 
3971
3994
  /**
3972
- * Get a Cockpit. Retrieve the Cockpit of the specified Project ID.
3995
+ * Retrieve the Cockpit of the specified Project ID.
3973
3996
  *
3974
3997
  * @param request - The request {@link GetCockpitRequest}
3975
3998
  * @returns A Promise of Cockpit
@@ -3990,8 +4013,7 @@ let API$n = class API extends API$s {
3990
4013
  waitForCockpit = (request = {}, options) => waitForResource(options?.stop ?? (res => Promise.resolve(!COCKPIT_TRANSIENT_STATUSES.includes(res.status))), this.getCockpit, request, options);
3991
4014
 
3992
4015
  /**
3993
- * Get Cockpit metrics. Get metrics from your Cockpit with the specified
3994
- * Project ID.
4016
+ * Get metrics from your Cockpit with the specified Project ID.
3995
4017
  *
3996
4018
  * @param request - The request {@link GetCockpitMetricsRequest}
3997
4019
  * @returns A Promise of CockpitMetrics
@@ -4003,7 +4025,7 @@ let API$n = class API extends API$s {
4003
4025
  }, unmarshalCockpitMetrics);
4004
4026
 
4005
4027
  /**
4006
- * Deactivate a Cockpit. Deactivate the Cockpit of the specified Project ID.
4028
+ * Deactivate the Cockpit of the specified Project ID.
4007
4029
  *
4008
4030
  * @param request - The request {@link DeactivateCockpitRequest}
4009
4031
  * @returns A Promise of Cockpit
@@ -4016,8 +4038,7 @@ let API$n = class API extends API$s {
4016
4038
  }, unmarshalCockpit);
4017
4039
 
4018
4040
  /**
4019
- * Reset a Grafana. Reset your Cockpit's Grafana associated with the specified
4020
- * Project ID.
4041
+ * Reset your Cockpit's Grafana associated with the specified Project ID.
4021
4042
  *
4022
4043
  * @param request - The request {@link ResetCockpitGrafanaRequest}
4023
4044
  * @returns A Promise of Cockpit
@@ -4030,7 +4051,20 @@ let API$n = class API extends API$s {
4030
4051
  }, unmarshalCockpit);
4031
4052
 
4032
4053
  /**
4033
- * Create a token. Create a token associated with the specified Project ID.
4054
+ * Create a datasource for the specified Project ID and the given type.
4055
+ *
4056
+ * @param request - The request {@link CreateDatasourceRequest}
4057
+ * @returns A Promise of Datasource
4058
+ */
4059
+ createDatasource = request => this.client.fetch({
4060
+ body: JSON.stringify(marshalCreateDatasourceRequest(request, this.client.settings)),
4061
+ headers: jsonContentHeaders$l,
4062
+ method: 'POST',
4063
+ path: `/cockpit/v1beta1/datasources`
4064
+ }, unmarshalDatasource);
4065
+
4066
+ /**
4067
+ * Create a token associated with the specified Project ID.
4034
4068
  *
4035
4069
  * @param request - The request {@link CreateTokenRequest}
4036
4070
  * @returns A Promise of Token
@@ -4048,7 +4082,7 @@ let API$n = class API extends API$s {
4048
4082
  }, unmarshalListTokensResponse$2);
4049
4083
 
4050
4084
  /**
4051
- * List tokens. Get a list of tokens associated with the specified Project ID.
4085
+ * Get a list of tokens associated with the specified Project ID.
4052
4086
  *
4053
4087
  * @param request - The request {@link ListTokensRequest}
4054
4088
  * @returns A Promise of ListTokensResponse
@@ -4056,7 +4090,7 @@ let API$n = class API extends API$s {
4056
4090
  listTokens = (request = {}) => enrichForPagination('tokens', this.pageOfListTokens, request);
4057
4091
 
4058
4092
  /**
4059
- * Get a token. Retrieve the token associated with the specified token ID.
4093
+ * Retrieve the token associated with the specified token ID.
4060
4094
  *
4061
4095
  * @param request - The request {@link GetTokenRequest}
4062
4096
  * @returns A Promise of Token
@@ -4067,7 +4101,7 @@ let API$n = class API extends API$s {
4067
4101
  }, unmarshalToken$2);
4068
4102
 
4069
4103
  /**
4070
- * Delete a token. Delete the token associated with the specified token ID.
4104
+ * Delete the token associated with the specified token ID.
4071
4105
  *
4072
4106
  * @param request - The request {@link DeleteTokenRequest}
4073
4107
  */
@@ -4077,8 +4111,7 @@ let API$n = class API extends API$s {
4077
4111
  });
4078
4112
 
4079
4113
  /**
4080
- * Create a contact point. Create a contact point to receive alerts for the
4081
- * default receiver.
4114
+ * Create a contact point to receive alerts for the default receiver.
4082
4115
  *
4083
4116
  * @param request - The request {@link CreateContactPointRequest}
4084
4117
  * @returns A Promise of ContactPoint
@@ -4096,8 +4129,8 @@ let API$n = class API extends API$s {
4096
4129
  }, unmarshalListContactPointsResponse);
4097
4130
 
4098
4131
  /**
4099
- * List contact points. Get a list of contact points for the Cockpit
4100
- * associated with the specified Project ID.
4132
+ * Get a list of contact points for the Cockpit associated with the specified
4133
+ * Project ID.
4101
4134
  *
4102
4135
  * @param request - The request {@link ListContactPointsRequest}
4103
4136
  * @returns A Promise of ListContactPointsResponse
@@ -4105,8 +4138,7 @@ let API$n = class API extends API$s {
4105
4138
  listContactPoints = (request = {}) => enrichForPagination('contactPoints', this.pageOfListContactPoints, request);
4106
4139
 
4107
4140
  /**
4108
- * Delete an alert contact point. Delete a contact point for the default
4109
- * receiver.
4141
+ * Delete a contact point for the default receiver.
4110
4142
  *
4111
4143
  * @param request - The request {@link DeleteContactPointRequest}
4112
4144
  */
@@ -4118,8 +4150,7 @@ let API$n = class API extends API$s {
4118
4150
  });
4119
4151
 
4120
4152
  /**
4121
- * Enable managed alerts. Enable the sending of managed alerts for the
4122
- * specified Project's Cockpit.
4153
+ * Enable the sending of managed alerts for the specified Project's Cockpit.
4123
4154
  *
4124
4155
  * @param request - The request {@link EnableManagedAlertsRequest}
4125
4156
  */
@@ -4131,8 +4162,7 @@ let API$n = class API extends API$s {
4131
4162
  });
4132
4163
 
4133
4164
  /**
4134
- * Disable managed alerts. Disable the sending of managed alerts for the
4135
- * specified Project's Cockpit.
4165
+ * Disable the sending of managed alerts for the specified Project's Cockpit.
4136
4166
  *
4137
4167
  * @param request - The request {@link DisableManagedAlertsRequest}
4138
4168
  */
@@ -4144,8 +4174,7 @@ let API$n = class API extends API$s {
4144
4174
  });
4145
4175
 
4146
4176
  /**
4147
- * Trigger a test alert. Trigger a test alert to all of the Cockpit's
4148
- * receivers.
4177
+ * Trigger a test alert to all of the Cockpit's receivers.
4149
4178
  *
4150
4179
  * @param request - The request {@link TriggerTestAlertRequest}
4151
4180
  */
@@ -4157,9 +4186,8 @@ let API$n = class API extends API$s {
4157
4186
  });
4158
4187
 
4159
4188
  /**
4160
- * Create a Grafana user. Create a Grafana user for your Cockpit's Grafana
4161
- * instance. Make sure you save the automatically-generated password and the
4162
- * Grafana user ID.
4189
+ * Create a Grafana user for your Cockpit's Grafana instance. Make sure you
4190
+ * save the automatically-generated password and the Grafana user ID.
4163
4191
  *
4164
4192
  * @param request - The request {@link CreateGrafanaUserRequest}
4165
4193
  * @returns A Promise of GrafanaUser
@@ -4177,8 +4205,8 @@ let API$n = class API extends API$s {
4177
4205
  }, unmarshalListGrafanaUsersResponse);
4178
4206
 
4179
4207
  /**
4180
- * List Grafana users. Get a list of Grafana users who are able to connect to
4181
- * the Cockpit's Grafana instance.
4208
+ * Get a list of Grafana users who are able to connect to the Cockpit's
4209
+ * Grafana instance.
4182
4210
  *
4183
4211
  * @param request - The request {@link ListGrafanaUsersRequest}
4184
4212
  * @returns A Promise of ListGrafanaUsersResponse
@@ -4186,8 +4214,8 @@ let API$n = class API extends API$s {
4186
4214
  listGrafanaUsers = (request = {}) => enrichForPagination('grafanaUsers', this.pageOfListGrafanaUsers, request);
4187
4215
 
4188
4216
  /**
4189
- * Delete a Grafana user. Delete a Grafana user from a Grafana instance,
4190
- * specified by the Cockpit's Project ID and the Grafana user ID.
4217
+ * Delete a Grafana user from a Grafana instance, specified by the Cockpit's
4218
+ * Project ID and the Grafana user ID.
4191
4219
  *
4192
4220
  * @param request - The request {@link DeleteGrafanaUserRequest}
4193
4221
  */
@@ -4199,8 +4227,8 @@ let API$n = class API extends API$s {
4199
4227
  });
4200
4228
 
4201
4229
  /**
4202
- * Reset a Grafana user's password. Reset a Grafana user's password specified
4203
- * by the Cockpit's Project ID and the Grafana user ID.
4230
+ * Reset a Grafana user's password specified by the Cockpit's Project ID and
4231
+ * the Grafana user ID.
4204
4232
  *
4205
4233
  * @param request - The request {@link ResetGrafanaUserPasswordRequest}
4206
4234
  * @returns A Promise of GrafanaUser
@@ -4218,7 +4246,7 @@ let API$n = class API extends API$s {
4218
4246
  }, unmarshalListPlansResponse);
4219
4247
 
4220
4248
  /**
4221
- * List pricing plans. Get a list of all pricing plans available.
4249
+ * Get a list of all pricing plans available.
4222
4250
  *
4223
4251
  * @param request - The request {@link ListPlansRequest}
4224
4252
  * @returns A Promise of ListPlansResponse
@@ -4226,9 +4254,8 @@ let API$n = class API extends API$s {
4226
4254
  listPlans = (request = {}) => enrichForPagination('plans', this.pageOfListPlans, request);
4227
4255
 
4228
4256
  /**
4229
- * Select pricing plan. Select your chosen pricing plan for your Cockpit,
4230
- * specifying the Cockpit's Project ID and the pricing plan's ID in the
4231
- * request.
4257
+ * Select your chosen pricing plan for your Cockpit, specifying the Cockpit's
4258
+ * Project ID and the pricing plan's ID in the request.
4232
4259
  *
4233
4260
  * @param request - The request {@link SelectPlanRequest}
4234
4261
  * @returns A Promise of SelectPlanResponse
@@ -10979,7 +11006,7 @@ let API$h = class API extends API$s {
10979
11006
  pageOfListServers = (request = {}) => this.client.fetch({
10980
11007
  method: 'GET',
10981
11008
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers`,
10982
- urlParams: urlParams(['commercial_type', request.commercialType], ['name', request.name], ['order', request.order], ['organization', request.organization], ['page', request.page], ['per_page', request.perPage ?? this.client.settings.defaultPageSize], ['private_ip', request.privateIp], ['private_network', request.privateNetwork], ['private_networks', request.privateNetworks && request.privateNetworks.length > 0 ? request.privateNetworks.join(',') : undefined], ['project', request.project], ['state', request.state], ['tags', request.tags && request.tags.length > 0 ? request.tags.join(',') : undefined], ['without_ip', request.withoutIp])
11009
+ urlParams: urlParams(['commercial_type', request.commercialType], ['name', request.name], ['order', request.order], ['organization', request.organization], ['page', request.page], ['per_page', request.perPage ?? this.client.settings.defaultPageSize], ['private_ip', request.privateIp], ['private_network', request.privateNetwork], ['private_networks', request.privateNetworks && request.privateNetworks.length > 0 ? request.privateNetworks.join(',') : undefined], ['private_nic_mac_address', request.privateNicMacAddress], ['project', request.project], ['state', request.state], ['tags', request.tags && request.tags.length > 0 ? request.tags.join(',') : undefined], ['without_ip', request.withoutIp])
10983
11010
  }, unmarshalListServersResponse);
10984
11011
 
10985
11012
  /**
@@ -11145,7 +11172,7 @@ let API$h = class API extends API$s {
11145
11172
  pageOfListSnapshots = (request = {}) => this.client.fetch({
11146
11173
  method: 'GET',
11147
11174
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/snapshots`,
11148
- urlParams: urlParams(['name', request.name], ['organization', request.organization], ['page', request.page], ['per_page', request.perPage ?? this.client.settings.defaultPageSize], ['project', request.project], ['tags', request.tags])
11175
+ urlParams: urlParams(['base_volume_id', request.baseVolumeId], ['name', request.name], ['organization', request.organization], ['page', request.page], ['per_page', request.perPage ?? this.client.settings.defaultPageSize], ['project', request.project], ['tags', request.tags])
11149
11176
  }, unmarshalListSnapshotsResponse$1);
11150
11177
 
11151
11178
  /**
@@ -11531,7 +11558,7 @@ let API$h = class API extends API$s {
11531
11558
  pageOfListIps = (request = {}) => this.client.fetch({
11532
11559
  method: 'GET',
11533
11560
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/ips`,
11534
- urlParams: urlParams(['name', request.name], ['organization', request.organization], ['page', request.page], ['per_page', request.perPage ?? this.client.settings.defaultPageSize], ['project', request.project], ['tags', request.tags && request.tags.length > 0 ? request.tags.join(',') : undefined])
11561
+ urlParams: urlParams(['name', request.name], ['organization', request.organization], ['page', request.page], ['per_page', request.perPage ?? this.client.settings.defaultPageSize], ['project', request.project], ['tags', request.tags && request.tags.length > 0 ? request.tags.join(',') : undefined], ['type', request.type])
11535
11562
  }, unmarshalListIpsResponse$1);
11536
11563
 
11537
11564
  /**
@@ -13144,9 +13171,6 @@ var index$g = /*#__PURE__*/Object.freeze({
13144
13171
  // This file was automatically generated. DO NOT EDIT.
13145
13172
  // If you have any remark or suggestion do not hesitate to open an issue.
13146
13173
 
13147
- /** Lists transient statutes of the enum {@link NameStatus}. */
13148
- const NAME_TRANSIENT_STATUSES = ['queued', 'publishing'];
13149
-
13150
13174
  /** Lists transient statutes of the enum {@link PinStatus}. */
13151
13175
  const PIN_TRANSIENT_STATUSES = ['queued', 'pinning'];
13152
13176
 
@@ -13183,22 +13207,6 @@ const unmarshalPinInfo = data => {
13183
13207
  url: data.url
13184
13208
  };
13185
13209
  };
13186
- const unmarshalName = data => {
13187
- if (!isJSONObject(data)) {
13188
- throw new TypeError(`Unmarshalling the type 'Name' failed as data isn't a dictionary.`);
13189
- }
13190
- return {
13191
- createdAt: unmarshalDate(data.created_at),
13192
- key: data.key,
13193
- name: data.name,
13194
- nameId: data.name_id,
13195
- projectId: data.project_id,
13196
- status: data.status,
13197
- tags: data.tags,
13198
- updatedAt: unmarshalDate(data.updated_at),
13199
- value: data.value
13200
- };
13201
- };
13202
13210
  const unmarshalPin = data => {
13203
13211
  if (!isJSONObject(data)) {
13204
13212
  throw new TypeError(`Unmarshalling the type 'Pin' failed as data isn't a dictionary.`);
@@ -13228,28 +13236,6 @@ const unmarshalVolume$1 = data => {
13228
13236
  updatedAt: unmarshalDate(data.updated_at)
13229
13237
  };
13230
13238
  };
13231
- const unmarshalExportKeyNameResponse = data => {
13232
- if (!isJSONObject(data)) {
13233
- throw new TypeError(`Unmarshalling the type 'ExportKeyNameResponse' failed as data isn't a dictionary.`);
13234
- }
13235
- return {
13236
- createdAt: unmarshalDate(data.created_at),
13237
- nameId: data.name_id,
13238
- privateKey: data.private_key,
13239
- projectId: data.project_id,
13240
- publicKey: data.public_key,
13241
- updatedAt: unmarshalDate(data.updated_at)
13242
- };
13243
- };
13244
- const unmarshalListNamesResponse = data => {
13245
- if (!isJSONObject(data)) {
13246
- throw new TypeError(`Unmarshalling the type 'ListNamesResponse' failed as data isn't a dictionary.`);
13247
- }
13248
- return {
13249
- names: unmarshalArrayOfObject(data.names, unmarshalName),
13250
- totalCount: data.total_count
13251
- };
13252
- };
13253
13239
  const unmarshalListPinsResponse = data => {
13254
13240
  if (!isJSONObject(data)) {
13255
13241
  throw new TypeError(`Unmarshalling the type 'ListPinsResponse' failed as data isn't a dictionary.`);
@@ -13280,11 +13266,6 @@ const marshalPinOptions = (request, defaults) => ({
13280
13266
  replication_count: request.replicationCount,
13281
13267
  required_zones: request.requiredZones
13282
13268
  });
13283
- const marshalCreateNameRequest = (request, defaults) => ({
13284
- name: request.name,
13285
- project_id: request.projectId ?? defaults.defaultProjectId,
13286
- value: request.value
13287
- });
13288
13269
  const marshalCreatePinByCIDRequest = (request, defaults) => ({
13289
13270
  cid: request.cid,
13290
13271
  name: request.name,
@@ -13302,12 +13283,6 @@ const marshalCreateVolumeRequest = (request, defaults) => ({
13302
13283
  name: request.name,
13303
13284
  project_id: request.projectId ?? defaults.defaultProjectId
13304
13285
  });
13305
- const marshalImportKeyNameRequest = (request, defaults) => ({
13306
- name: request.name,
13307
- private_key: request.privateKey,
13308
- project_id: request.projectId ?? defaults.defaultProjectId,
13309
- value: request.value
13310
- });
13311
13286
  const marshalReplacePinRequest = (request, defaults) => ({
13312
13287
  cid: request.cid,
13313
13288
  name: request.name,
@@ -13315,11 +13290,6 @@ const marshalReplacePinRequest = (request, defaults) => ({
13315
13290
  pin_options: request.pinOptions ? marshalPinOptions(request.pinOptions) : undefined,
13316
13291
  volume_id: request.volumeId
13317
13292
  });
13318
- const marshalUpdateNameRequest = (request, defaults) => ({
13319
- name: request.name,
13320
- tags: request.tags,
13321
- value: request.value
13322
- });
13323
13293
  const marshalUpdateVolumeRequest = (request, defaults) => ({
13324
13294
  name: request.name,
13325
13295
  tags: request.tags
@@ -13496,101 +13466,6 @@ let API$f = class API extends API$s {
13496
13466
  path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/pins/${validatePathParam('pinId', request.pinId)}`,
13497
13467
  urlParams: urlParams(['volume_id', request.volumeId])
13498
13468
  });
13499
-
13500
- /**
13501
- * Create a new name. You can use the `ipfs key` command to list and generate
13502
- * more names and their respective keys.
13503
- *
13504
- * @param request - The request {@link CreateNameRequest}
13505
- * @returns A Promise of Name
13506
- */
13507
- createName = request => this.client.fetch({
13508
- body: JSON.stringify(marshalCreateNameRequest(request, this.client.settings)),
13509
- headers: jsonContentHeaders$d,
13510
- method: 'POST',
13511
- path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names`
13512
- }, unmarshalName);
13513
-
13514
- /**
13515
- * Get information about a name. Retrieve information about a specific name.
13516
- *
13517
- * @param request - The request {@link GetNameRequest}
13518
- * @returns A Promise of Name
13519
- */
13520
- getName = request => this.client.fetch({
13521
- method: 'GET',
13522
- path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names/${validatePathParam('nameId', request.nameId)}`
13523
- }, unmarshalName);
13524
-
13525
- /**
13526
- * Waits for {@link Name} to be in a final state.
13527
- *
13528
- * @param request - The request {@link GetNameRequest}
13529
- * @param options - The waiting options
13530
- * @returns A Promise of Name
13531
- */
13532
- waitForName = (request, options) => waitForResource(options?.stop ?? (res => Promise.resolve(!NAME_TRANSIENT_STATUSES.includes(res.status))), this.getName, request, options);
13533
-
13534
- /**
13535
- * Delete an existing name. Delete a name by its ID.
13536
- *
13537
- * @param request - The request {@link DeleteNameRequest}
13538
- */
13539
- deleteName = request => this.client.fetch({
13540
- method: 'DELETE',
13541
- path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names/${validatePathParam('nameId', request.nameId)}`
13542
- });
13543
- pageOfListNames = (request = {}) => this.client.fetch({
13544
- method: 'GET',
13545
- path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names`,
13546
- 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])
13547
- }, unmarshalListNamesResponse);
13548
-
13549
- /**
13550
- * List all names by a Project ID. Retrieve information about all names from a
13551
- * Project ID.
13552
- *
13553
- * @param request - The request {@link ListNamesRequest}
13554
- * @returns A Promise of ListNamesResponse
13555
- */
13556
- listNames = (request = {}) => enrichForPagination('names', this.pageOfListNames, request);
13557
-
13558
- /**
13559
- * Update name information. Update name information (CID, tag, name...).
13560
- *
13561
- * @param request - The request {@link UpdateNameRequest}
13562
- * @returns A Promise of Name
13563
- */
13564
- updateName = request => this.client.fetch({
13565
- body: JSON.stringify(marshalUpdateNameRequest(request, this.client.settings)),
13566
- headers: jsonContentHeaders$d,
13567
- method: 'PATCH',
13568
- path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names/${validatePathParam('nameId', request.nameId)}`
13569
- }, unmarshalName);
13570
-
13571
- /**
13572
- * Export your private key. Export a private key by its ID.
13573
- *
13574
- * @param request - The request {@link ExportKeyNameRequest}
13575
- * @returns A Promise of ExportKeyNameResponse
13576
- */
13577
- exportKeyName = request => this.client.fetch({
13578
- method: 'GET',
13579
- path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names/export-key/${validatePathParam('nameId', request.nameId)}`
13580
- }, unmarshalExportKeyNameResponse);
13581
-
13582
- /**
13583
- * Import your private key. Import a private key.
13584
- *
13585
- * @param request - The request {@link ImportKeyNameRequest}
13586
- * @returns A Promise of Name
13587
- */
13588
- importKeyName = request => this.client.fetch({
13589
- body: JSON.stringify(marshalImportKeyNameRequest(request, this.client.settings)),
13590
- headers: jsonContentHeaders$d,
13591
- method: 'POST',
13592
- path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names/import-key`
13593
- }, unmarshalName);
13594
13469
  };
13595
13470
 
13596
13471
  // This file was automatically generated. DO NOT EDIT.
@@ -13599,7 +13474,6 @@ let API$f = class API extends API$s {
13599
13474
  var index_gen$d = /*#__PURE__*/Object.freeze({
13600
13475
  __proto__: null,
13601
13476
  API: API$f,
13602
- NAME_TRANSIENT_STATUSES: NAME_TRANSIENT_STATUSES,
13603
13477
  PIN_TRANSIENT_STATUSES: PIN_TRANSIENT_STATUSES
13604
13478
  });
13605
13479
 
@@ -14046,7 +13920,7 @@ let API$e = class API extends API$s {
14046
13920
  pageOfListClusters = (request = {}) => this.client.fetch({
14047
13921
  method: 'GET',
14048
13922
  path: `/k8s/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/clusters`,
14049
- urlParams: urlParams(['name', request.name], ['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], ['status', request.status ?? 'unknown'], ['type', request.type])
13923
+ urlParams: urlParams(['name', request.name], ['order_by', request.orderBy ?? 'created_at_asc'], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['private_network_id', request.privateNetworkId], ['project_id', request.projectId], ['status', request.status ?? 'unknown'], ['type', request.type])
14050
13924
  }, unmarshalListClustersResponse$1);
14051
13925
 
14052
13926
  /**
@@ -14937,6 +14811,7 @@ const unmarshalPrivateNetwork$3 = data => {
14937
14811
  createdAt: unmarshalDate(data.created_at),
14938
14812
  dhcpConfig: data.dhcp_config ? unmarshalPrivateNetworkDHCPConfig(data.dhcp_config) : undefined,
14939
14813
  ipamConfig: data.ipam_config ? unmarshalPrivateNetworkIpamConfig(data.ipam_config) : undefined,
14814
+ ipamIds: data.ipam_ids,
14940
14815
  lb: data.lb ? unmarshalLb(data.lb) : undefined,
14941
14816
  privateNetworkId: data.private_network_id,
14942
14817
  staticConfig: data.static_config ? unmarshalPrivateNetworkStaticConfig(data.static_config) : undefined,
@@ -20760,11 +20635,11 @@ let API$6 = class API extends API$s {
20760
20635
  pageOfListFolders = (request = {}) => this.client.fetch({
20761
20636
  method: 'GET',
20762
20637
  path: `/secret-manager/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/folders`,
20763
- urlParams: urlParams(['order_by', request.orderBy ?? 'created_at_asc'], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['path', request.path], ['project_id', request.projectId ?? this.client.settings.defaultProjectId])
20638
+ urlParams: urlParams(['order_by', request.orderBy ?? 'created_at_asc'], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['path', request.path], ['project_id', request.projectId])
20764
20639
  }, unmarshalListFoldersResponse);
20765
20640
 
20766
20641
  /**
20767
- * List secrets. Retrieve the list of folders created within a Project.
20642
+ * List folders. Retrieve the list of folders created within a Project.
20768
20643
  *
20769
20644
  * @param request - The request {@link ListFoldersRequest}
20770
20645
  * @returns A Promise of ListFoldersResponse
@@ -23071,6 +22946,7 @@ const unmarshalOfferProduct = data => {
23071
22946
  emailAccountsQuota: data.email_accounts_quota,
23072
22947
  emailStorageQuota: data.email_storage_quota,
23073
22948
  hostingStorageQuota: data.hosting_storage_quota,
22949
+ maxAddonDomains: data.max_addon_domains,
23074
22950
  name: data.name,
23075
22951
  option: data.option,
23076
22952
  ram: data.ram,