@scaleway/sdk 1.29.0 → 1.31.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 (29) 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/marshalling.gen.js +7 -3
  5. package/dist/api/container/v1beta1/marshalling.gen.js +1 -1
  6. package/dist/api/function/v1beta1/marshalling.gen.js +1 -1
  7. package/dist/api/iam/v1alpha1/marshalling.gen.js +1 -1
  8. package/dist/api/instance/v1/api.gen.js +45 -3
  9. package/dist/api/instance/v1/marshalling.gen.js +31 -2
  10. package/dist/api/iot/v1/marshalling.gen.js +1 -1
  11. package/dist/api/ipfs/v1alpha1/api.gen.js +51 -1
  12. package/dist/api/ipfs/v1alpha1/marshalling.gen.js +8 -7
  13. package/dist/api/k8s/v1/marshalling.gen.js +1 -1
  14. package/dist/api/lb/v1/marshalling.gen.js +1 -1
  15. package/dist/api/mnq/v1alpha1/marshalling.gen.js +1 -1
  16. package/dist/api/rdb/v1/marshalling.gen.js +1 -1
  17. package/dist/api/redis/v1/marshalling.gen.js +1 -1
  18. package/dist/api/registry/v1/marshalling.gen.js +1 -1
  19. package/dist/api/vpc/v1/marshalling.gen.js +1 -1
  20. package/dist/api/vpc/v2/marshalling.gen.js +1 -1
  21. package/dist/api/vpcgw/v1/marshalling.gen.js +1 -1
  22. package/dist/api/webhosting/v1alpha1/marshalling.gen.js +1 -0
  23. package/dist/index.cjs +132 -13
  24. package/dist/index.d.ts +175 -14
  25. package/dist/scw/constants.js +1 -1
  26. package/node_modules/@scaleway/random-name/CHANGELOG.md +11 -13
  27. package/node_modules/@scaleway/random-name/package.json +7 -7
  28. package/package.json +3 -3
  29. /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
@@ -1,4 +1,4 @@
1
- import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.1/node_modules/@scaleway/random-name/dist/index.js';
1
+ import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.2/node_modules/@scaleway/random-name/dist/index.js';
2
2
  import { isJSONObject } from '../../../helpers/json.js';
3
3
  import { unmarshalDate, unmarshalArrayOfObject } from '../../../helpers/marshalling.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.1/node_modules/@scaleway/random-name/dist/index.js';
1
+ import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.2/node_modules/@scaleway/random-name/dist/index.js';
2
2
  import { isJSONObject } from '../../../helpers/json.js';
3
3
  import { unmarshalDate, unmarshalArrayOfObject } from '../../../helpers/marshalling.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.1/node_modules/@scaleway/random-name/dist/index.js';
1
+ import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.2/node_modules/@scaleway/random-name/dist/index.js';
2
2
  import { isJSONObject } from '../../../helpers/json.js';
3
3
  import { unmarshalDate, unmarshalArrayOfObject } from '../../../helpers/marshalling.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.1/node_modules/@scaleway/random-name/dist/index.js';
1
+ import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.2/node_modules/@scaleway/random-name/dist/index.js';
2
2
  import { isJSONObject } from '../../../helpers/json.js';
3
3
  import { unmarshalTimeSeries } from '../../../scw/custom-marshalling.js';
4
4
  import { unmarshalDate, unmarshalArrayOfObject, resolveOneOf } from '../../../helpers/marshalling.js';
@@ -20,11 +20,13 @@ const unmarshalTokenScopes = data => {
20
20
  return {
21
21
  queryLogs: data.query_logs,
22
22
  queryMetrics: data.query_metrics,
23
+ queryTraces: data.query_traces,
23
24
  setupAlerts: data.setup_alerts,
24
25
  setupLogsRules: data.setup_logs_rules,
25
26
  setupMetricsRules: data.setup_metrics_rules,
26
27
  writeLogs: data.write_logs,
27
- writeMetrics: data.write_metrics
28
+ writeMetrics: data.write_metrics,
29
+ writeTraces: data.write_traces
28
30
  };
29
31
  };
30
32
  const unmarshalCockpitEndpoints = data => {
@@ -163,11 +165,13 @@ const marshalContactPoint = (request, defaults) => ({
163
165
  const marshalTokenScopes = (request, defaults) => ({
164
166
  query_logs: request.queryLogs,
165
167
  query_metrics: request.queryMetrics,
168
+ query_traces: request.queryTraces,
166
169
  setup_alerts: request.setupAlerts,
167
170
  setup_logs_rules: request.setupLogsRules,
168
171
  setup_metrics_rules: request.setupMetricsRules,
169
172
  write_logs: request.writeLogs,
170
- write_metrics: request.writeMetrics
173
+ write_metrics: request.writeMetrics,
174
+ write_traces: request.writeTraces
171
175
  });
172
176
  const marshalActivateCockpitRequest = (request, defaults) => ({
173
177
  project_id: request.projectId ?? defaults.defaultProjectId
@@ -1,4 +1,4 @@
1
- import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.1/node_modules/@scaleway/random-name/dist/index.js';
1
+ import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.2/node_modules/@scaleway/random-name/dist/index.js';
2
2
  import { isJSONObject } from '../../../helpers/json.js';
3
3
  import { unmarshalArrayOfObject, unmarshalDate, resolveOneOf } from '../../../helpers/marshalling.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.1/node_modules/@scaleway/random-name/dist/index.js';
1
+ import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.2/node_modules/@scaleway/random-name/dist/index.js';
2
2
  import { isJSONObject } from '../../../helpers/json.js';
3
3
  import { unmarshalArrayOfObject, unmarshalDate, resolveOneOf } from '../../../helpers/marshalling.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.1/node_modules/@scaleway/random-name/dist/index.js';
1
+ import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.2/node_modules/@scaleway/random-name/dist/index.js';
2
2
  import { isJSONObject } from '../../../helpers/json.js';
3
3
  import { unmarshalDate, unmarshalArrayOfObject, resolveOneOf } from '../../../helpers/marshalling.js';
4
4
 
@@ -1,7 +1,7 @@
1
1
  import { API as API$1 } from '../../../scw/api.js';
2
2
  import { validatePathParam, urlParams } from '../../../helpers/marshalling.js';
3
3
  import { enrichForPagination } from '../../../scw/fetch/resource-paginator.js';
4
- import { unmarshalGetServerTypesAvailabilityResponse, unmarshalListServersTypesResponse, unmarshalListVolumesTypesResponse, unmarshalListServersResponse, marshalCreateServerRequest, unmarshalCreateServerResponse, unmarshalGetServerResponse, marshalSetServerRequest, unmarshalSetServerResponse, marshalUpdateServerRequest, unmarshalUpdateServerResponse, unmarshalListServerActionsResponse, marshalServerActionRequest, unmarshalServerActionResponse, unmarshalListServerUserDataResponse, unmarshalListImagesResponse, unmarshalGetImageResponse, marshalCreateImageRequest, unmarshalCreateImageResponse, marshalSetImageRequest, unmarshalSetImageResponse, unmarshalListSnapshotsResponse, marshalCreateSnapshotRequest, unmarshalCreateSnapshotResponse, unmarshalGetSnapshotResponse, marshalSetSnapshotRequest, unmarshalSetSnapshotResponse, marshalExportSnapshotRequest, unmarshalExportSnapshotResponse, unmarshalListVolumesResponse, marshalCreateVolumeRequest, unmarshalCreateVolumeResponse, unmarshalGetVolumeResponse, marshalUpdateVolumeRequest, unmarshalUpdateVolumeResponse, unmarshalListSecurityGroupsResponse, marshalCreateSecurityGroupRequest, unmarshalCreateSecurityGroupResponse, unmarshalGetSecurityGroupResponse, marshalSetSecurityGroupRequest, unmarshalSetSecurityGroupResponse, unmarshalListSecurityGroupRulesResponse, marshalCreateSecurityGroupRuleRequest, unmarshalCreateSecurityGroupRuleResponse, marshalSetSecurityGroupRulesRequest, unmarshalSetSecurityGroupRulesResponse, unmarshalGetSecurityGroupRuleResponse, marshalSetSecurityGroupRuleRequest, unmarshalSetSecurityGroupRuleResponse, unmarshalListPlacementGroupsResponse, marshalCreatePlacementGroupRequest, unmarshalCreatePlacementGroupResponse, unmarshalGetPlacementGroupResponse, marshalSetPlacementGroupRequest, unmarshalSetPlacementGroupResponse, marshalUpdatePlacementGroupRequest, unmarshalUpdatePlacementGroupResponse, unmarshalGetPlacementGroupServersResponse, marshalSetPlacementGroupServersRequest, unmarshalSetPlacementGroupServersResponse, marshalUpdatePlacementGroupServersRequest, unmarshalUpdatePlacementGroupServersResponse, unmarshalListIpsResponse, marshalCreateIpRequest, unmarshalCreateIpResponse, unmarshalGetIpResponse, marshalUpdateIpRequest, unmarshalUpdateIpResponse, unmarshalListPrivateNICsResponse, marshalCreatePrivateNICRequest, unmarshalCreatePrivateNICResponse, unmarshalGetPrivateNICResponse, marshalUpdatePrivateNICRequest, unmarshalPrivateNIC, unmarshalListBootscriptsResponse, unmarshalGetBootscriptResponse, unmarshalGetDashboardResponse } from './marshalling.gen.js';
4
+ import { unmarshalGetServerTypesAvailabilityResponse, unmarshalListServersTypesResponse, unmarshalListVolumesTypesResponse, unmarshalListServersResponse, marshalCreateServerRequest, unmarshalCreateServerResponse, unmarshalGetServerResponse, marshalSetServerRequest, unmarshalSetServerResponse, marshalUpdateServerRequest, unmarshalUpdateServerResponse, unmarshalListServerActionsResponse, marshalServerActionRequest, unmarshalServerActionResponse, unmarshalListServerUserDataResponse, unmarshalListImagesResponse, unmarshalGetImageResponse, marshalCreateImageRequest, unmarshalCreateImageResponse, marshalSetImageRequest, unmarshalSetImageResponse, unmarshalListSnapshotsResponse, marshalCreateSnapshotRequest, unmarshalCreateSnapshotResponse, unmarshalGetSnapshotResponse, marshalSetSnapshotRequest, unmarshalSetSnapshotResponse, marshalExportSnapshotRequest, unmarshalExportSnapshotResponse, unmarshalListVolumesResponse, marshalCreateVolumeRequest, unmarshalCreateVolumeResponse, unmarshalGetVolumeResponse, marshalUpdateVolumeRequest, unmarshalUpdateVolumeResponse, unmarshalListSecurityGroupsResponse, marshalCreateSecurityGroupRequest, unmarshalCreateSecurityGroupResponse, unmarshalGetSecurityGroupResponse, marshalSetSecurityGroupRequest, unmarshalSetSecurityGroupResponse, unmarshalListSecurityGroupRulesResponse, marshalCreateSecurityGroupRuleRequest, unmarshalCreateSecurityGroupRuleResponse, marshalSetSecurityGroupRulesRequest, unmarshalSetSecurityGroupRulesResponse, unmarshalGetSecurityGroupRuleResponse, marshalSetSecurityGroupRuleRequest, unmarshalSetSecurityGroupRuleResponse, unmarshalListPlacementGroupsResponse, marshalCreatePlacementGroupRequest, unmarshalCreatePlacementGroupResponse, unmarshalGetPlacementGroupResponse, marshalSetPlacementGroupRequest, unmarshalSetPlacementGroupResponse, marshalUpdatePlacementGroupRequest, unmarshalUpdatePlacementGroupResponse, unmarshalGetPlacementGroupServersResponse, marshalSetPlacementGroupServersRequest, unmarshalSetPlacementGroupServersResponse, marshalUpdatePlacementGroupServersRequest, unmarshalUpdatePlacementGroupServersResponse, unmarshalListIpsResponse, marshalCreateIpRequest, unmarshalCreateIpResponse, unmarshalGetIpResponse, marshalUpdateIpRequest, unmarshalUpdateIpResponse, unmarshalListPrivateNICsResponse, marshalCreatePrivateNICRequest, unmarshalCreatePrivateNICResponse, unmarshalGetPrivateNICResponse, marshalUpdatePrivateNICRequest, unmarshalPrivateNIC, unmarshalListBootscriptsResponse, unmarshalGetBootscriptResponse, unmarshalGetDashboardResponse, marshalPlanBlockMigrationRequest, unmarshalMigrationPlan, marshalApplyBlockMigrationRequest } from './marshalling.gen.js';
5
5
 
6
6
  // This file was automatically generated. DO NOT EDIT.
7
7
  // If you have any remark or suggestion do not hesitate to open an issue.
@@ -83,7 +83,7 @@ class API extends API$1 {
83
83
  return _this4.client.fetch({
84
84
  method: 'GET',
85
85
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? _this4.client.settings.defaultZone)}/servers`,
86
- urlParams: urlParams(['commercial_type', request.commercialType], ['name', request.name], ['order', request.order], ['organization', request.organization], ['page', request.page], ['per_page', request.perPage ?? _this4.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])
86
+ urlParams: urlParams(['commercial_type', request.commercialType], ['name', request.name], ['order', request.order], ['organization', request.organization], ['page', request.page], ['per_page', request.perPage ?? _this4.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])
87
87
  }, unmarshalListServersResponse);
88
88
  };
89
89
  })();
@@ -763,7 +763,7 @@ class API extends API$1 {
763
763
  return _this20.client.fetch({
764
764
  method: 'GET',
765
765
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? _this20.client.settings.defaultZone)}/ips`,
766
- urlParams: urlParams(['name', request.name], ['organization', request.organization], ['page', request.page], ['per_page', request.perPage ?? _this20.client.settings.defaultPageSize], ['project', request.project], ['tags', request.tags && request.tags.length > 0 ? request.tags.join(',') : undefined])
766
+ urlParams: urlParams(['name', request.name], ['organization', request.organization], ['page', request.page], ['per_page', request.perPage ?? _this20.client.settings.defaultPageSize], ['project', request.project], ['tags', request.tags && request.tags.length > 0 ? request.tags.join(',') : undefined], ['type', request.type])
767
767
  }, unmarshalListIpsResponse);
768
768
  };
769
769
  })();
@@ -956,6 +956,48 @@ class API extends API$1 {
956
956
  }, unmarshalGetDashboardResponse);
957
957
  };
958
958
  })();
959
+
960
+ /**
961
+ * Get a volume or snapshot's migration plan. Given a volume or snapshot,
962
+ * returns the migration plan for a call to the RPC ApplyBlockMigration. This
963
+ * plan will include zero or one volume, and zero or more snapshots, which
964
+ * will need to be migrated together. This RPC does not perform the actual
965
+ * migration itself, ApplyBlockMigration must be used. The validation_key
966
+ * value returned by this call must be provided to the ApplyBlockMigration
967
+ * call to confirm that all resources listed in the plan should be migrated.
968
+ *
969
+ * @param request - The request {@link PlanBlockMigrationRequest}
970
+ * @returns A Promise of MigrationPlan
971
+ */
972
+ planBlockMigration = (() => {
973
+ var _this26 = this;
974
+ return function (request) {
975
+ if (request === void 0) {
976
+ request = {};
977
+ }
978
+ return _this26.client.fetch({
979
+ body: JSON.stringify(marshalPlanBlockMigrationRequest(request, _this26.client.settings)),
980
+ headers: jsonContentHeaders,
981
+ method: 'POST',
982
+ path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? _this26.client.settings.defaultZone)}/block-migration/plan`
983
+ }, unmarshalMigrationPlan);
984
+ };
985
+ })();
986
+
987
+ /**
988
+ * Migrate a volume and/or snapshots to SBS (Scaleway Block Storage). To be
989
+ * used, this RPC must be preceded by a call to PlanBlockMigration. To migrate
990
+ * all resources mentioned in the MigrationPlan, the validation_key returned
991
+ * in the MigrationPlan must be provided.
992
+ *
993
+ * @param request - The request {@link ApplyBlockMigrationRequest}
994
+ */
995
+ applyBlockMigration = request => this.client.fetch({
996
+ body: JSON.stringify(marshalApplyBlockMigrationRequest(request, this.client.settings)),
997
+ headers: jsonContentHeaders,
998
+ method: 'POST',
999
+ path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/block-migration/apply`
1000
+ });
959
1001
  }
960
1002
 
961
1003
  export { API };
@@ -1,4 +1,4 @@
1
- import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.1/node_modules/@scaleway/random-name/dist/index.js';
1
+ import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.2/node_modules/@scaleway/random-name/dist/index.js';
2
2
  import { isJSONObject } from '../../../helpers/json.js';
3
3
  import { unmarshalDate, unmarshalMapOfObject, unmarshalArrayOfObject, resolveOneOf } from '../../../helpers/marshalling.js';
4
4
 
@@ -773,6 +773,16 @@ const unmarshalListVolumesTypesResponse = data => {
773
773
  volumes: unmarshalMapOfObject(data.volumes, unmarshalVolumeType)
774
774
  };
775
775
  };
776
+ const unmarshalMigrationPlan = data => {
777
+ if (!isJSONObject(data)) {
778
+ throw new TypeError(`Unmarshalling the type 'MigrationPlan' failed as data isn't a dictionary.`);
779
+ }
780
+ return {
781
+ snapshots: unmarshalArrayOfObject(data.snapshots, unmarshalSnapshot),
782
+ validationKey: data.validation_key,
783
+ volume: data.volume ? unmarshalVolume(data.volume) : undefined
784
+ };
785
+ };
776
786
  const unmarshalServerActionResponse = data => {
777
787
  if (!isJSONObject(data)) {
778
788
  throw new TypeError(`Unmarshalling the type 'ServerActionResponse' failed as data isn't a dictionary.`);
@@ -1040,6 +1050,16 @@ const marshalVolumeTemplate = (request, defaults) => ({
1040
1050
  value: request.organization
1041
1051
  }])
1042
1052
  });
1053
+ const marshalApplyBlockMigrationRequest = (request, defaults) => ({
1054
+ validation_key: request.validationKey,
1055
+ ...resolveOneOf([{
1056
+ param: 'volume_id',
1057
+ value: request.volumeId
1058
+ }, {
1059
+ param: 'snapshot_id',
1060
+ value: request.snapshotId
1061
+ }])
1062
+ });
1043
1063
  const marshalCreateImageRequest = (request, defaults) => ({
1044
1064
  arch: request.arch,
1045
1065
  default_bootscript: request.defaultBootscript,
@@ -1210,6 +1230,15 @@ const marshalExportSnapshotRequest = (request, defaults) => ({
1210
1230
  bucket: request.bucket,
1211
1231
  key: request.key
1212
1232
  });
1233
+ const marshalPlanBlockMigrationRequest = (request, defaults) => ({
1234
+ ...resolveOneOf([{
1235
+ param: 'volume_id',
1236
+ value: request.volumeId
1237
+ }, {
1238
+ param: 'snapshot_id',
1239
+ value: request.snapshotId
1240
+ }])
1241
+ });
1213
1242
  const marshalServerActionRequest = (request, defaults) => ({
1214
1243
  action: request.action ?? 'poweron',
1215
1244
  name: request.name,
@@ -1379,4 +1408,4 @@ const marshalUpdateVolumeRequest = (request, defaults) => ({
1379
1408
  tags: request.tags
1380
1409
  });
1381
1410
 
1382
- export { marshalCreateImageRequest, marshalCreateIpRequest, marshalCreatePlacementGroupRequest, marshalCreatePrivateNICRequest, marshalCreateSecurityGroupRequest, marshalCreateSecurityGroupRuleRequest, marshalCreateServerRequest, marshalCreateSnapshotRequest, marshalCreateVolumeRequest, marshalExportSnapshotRequest, marshalServerActionRequest, marshalSetImageRequest, marshalSetPlacementGroupRequest, marshalSetPlacementGroupServersRequest, marshalSetSecurityGroupRequest, marshalSetSecurityGroupRuleRequest, marshalSetSecurityGroupRulesRequest, marshalSetServerRequest, marshalSetSnapshotRequest, marshalUpdateIpRequest, marshalUpdatePlacementGroupRequest, marshalUpdatePlacementGroupServersRequest, marshalUpdatePrivateNICRequest, marshalUpdateServerRequest, marshalUpdateVolumeRequest, unmarshalCreateImageResponse, unmarshalCreateIpResponse, unmarshalCreatePlacementGroupResponse, unmarshalCreatePrivateNICResponse, unmarshalCreateSecurityGroupResponse, unmarshalCreateSecurityGroupRuleResponse, unmarshalCreateServerResponse, unmarshalCreateSnapshotResponse, unmarshalCreateVolumeResponse, unmarshalExportSnapshotResponse, unmarshalGetBootscriptResponse, unmarshalGetDashboardResponse, unmarshalGetImageResponse, unmarshalGetIpResponse, unmarshalGetPlacementGroupResponse, unmarshalGetPlacementGroupServersResponse, unmarshalGetPrivateNICResponse, unmarshalGetSecurityGroupResponse, unmarshalGetSecurityGroupRuleResponse, unmarshalGetServerResponse, unmarshalGetServerTypesAvailabilityResponse, unmarshalGetSnapshotResponse, unmarshalGetVolumeResponse, unmarshalListBootscriptsResponse, unmarshalListImagesResponse, unmarshalListIpsResponse, unmarshalListPlacementGroupsResponse, unmarshalListPrivateNICsResponse, unmarshalListSecurityGroupRulesResponse, unmarshalListSecurityGroupsResponse, unmarshalListServerActionsResponse, unmarshalListServerUserDataResponse, unmarshalListServersResponse, unmarshalListServersTypesResponse, unmarshalListSnapshotsResponse, unmarshalListVolumesResponse, unmarshalListVolumesTypesResponse, unmarshalPrivateNIC, unmarshalServerActionResponse, unmarshalSetImageResponse, unmarshalSetPlacementGroupResponse, unmarshalSetPlacementGroupServersResponse, unmarshalSetSecurityGroupResponse, unmarshalSetSecurityGroupRuleResponse, unmarshalSetSecurityGroupRulesResponse, unmarshalSetServerResponse, unmarshalSetSnapshotResponse, unmarshalUpdateIpResponse, unmarshalUpdatePlacementGroupResponse, unmarshalUpdatePlacementGroupServersResponse, unmarshalUpdateServerResponse, unmarshalUpdateVolumeResponse };
1411
+ export { marshalApplyBlockMigrationRequest, marshalCreateImageRequest, marshalCreateIpRequest, marshalCreatePlacementGroupRequest, marshalCreatePrivateNICRequest, marshalCreateSecurityGroupRequest, marshalCreateSecurityGroupRuleRequest, marshalCreateServerRequest, marshalCreateSnapshotRequest, marshalCreateVolumeRequest, marshalExportSnapshotRequest, marshalPlanBlockMigrationRequest, marshalServerActionRequest, marshalSetImageRequest, marshalSetPlacementGroupRequest, marshalSetPlacementGroupServersRequest, marshalSetSecurityGroupRequest, marshalSetSecurityGroupRuleRequest, marshalSetSecurityGroupRulesRequest, marshalSetServerRequest, marshalSetSnapshotRequest, marshalUpdateIpRequest, marshalUpdatePlacementGroupRequest, marshalUpdatePlacementGroupServersRequest, marshalUpdatePrivateNICRequest, marshalUpdateServerRequest, marshalUpdateVolumeRequest, unmarshalCreateImageResponse, unmarshalCreateIpResponse, unmarshalCreatePlacementGroupResponse, unmarshalCreatePrivateNICResponse, unmarshalCreateSecurityGroupResponse, unmarshalCreateSecurityGroupRuleResponse, unmarshalCreateServerResponse, unmarshalCreateSnapshotResponse, unmarshalCreateVolumeResponse, unmarshalExportSnapshotResponse, unmarshalGetBootscriptResponse, unmarshalGetDashboardResponse, unmarshalGetImageResponse, unmarshalGetIpResponse, unmarshalGetPlacementGroupResponse, unmarshalGetPlacementGroupServersResponse, unmarshalGetPrivateNICResponse, unmarshalGetSecurityGroupResponse, unmarshalGetSecurityGroupRuleResponse, unmarshalGetServerResponse, unmarshalGetServerTypesAvailabilityResponse, unmarshalGetSnapshotResponse, unmarshalGetVolumeResponse, unmarshalListBootscriptsResponse, unmarshalListImagesResponse, unmarshalListIpsResponse, unmarshalListPlacementGroupsResponse, unmarshalListPrivateNICsResponse, unmarshalListSecurityGroupRulesResponse, unmarshalListSecurityGroupsResponse, unmarshalListServerActionsResponse, unmarshalListServerUserDataResponse, unmarshalListServersResponse, unmarshalListServersTypesResponse, unmarshalListSnapshotsResponse, unmarshalListVolumesResponse, unmarshalListVolumesTypesResponse, unmarshalMigrationPlan, unmarshalPrivateNIC, unmarshalServerActionResponse, unmarshalSetImageResponse, unmarshalSetPlacementGroupResponse, unmarshalSetPlacementGroupServersResponse, unmarshalSetSecurityGroupResponse, unmarshalSetSecurityGroupRuleResponse, unmarshalSetSecurityGroupRulesResponse, unmarshalSetServerResponse, unmarshalSetSnapshotResponse, unmarshalUpdateIpResponse, unmarshalUpdatePlacementGroupResponse, unmarshalUpdatePlacementGroupServersResponse, unmarshalUpdateServerResponse, unmarshalUpdateVolumeResponse };
@@ -1,4 +1,4 @@
1
- import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.1/node_modules/@scaleway/random-name/dist/index.js';
1
+ import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.2/node_modules/@scaleway/random-name/dist/index.js';
2
2
  import { isJSONObject } from '../../../helpers/json.js';
3
3
  import { unmarshalTimeSeries } from '../../../scw/custom-marshalling.js';
4
4
  import { unmarshalDate, unmarshalArrayOfObject, resolveOneOf } from '../../../helpers/marshalling.js';
@@ -172,7 +172,7 @@ class API extends API$1 {
172
172
  }, unmarshalListPinsResponse);
173
173
 
174
174
  /**
175
- * List all pins within a volume. Retrieve information about all pins into a
175
+ * List all pins within a volume. Retrieve information about all pins within a
176
176
  * volume.
177
177
  *
178
178
  * @param request - The request {@link ListPinsRequest}
@@ -192,12 +192,27 @@ class API extends API$1 {
192
192
  path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/pins/${validatePathParam('pinId', request.pinId)}`,
193
193
  urlParams: urlParams(['volume_id', request.volumeId])
194
194
  });
195
+
196
+ /**
197
+ * Create a new name. You can use the `ipfs key` command to list and generate
198
+ * more names and their respective keys.
199
+ *
200
+ * @param request - The request {@link CreateNameRequest}
201
+ * @returns A Promise of Name
202
+ */
195
203
  createName = request => this.client.fetch({
196
204
  body: JSON.stringify(marshalCreateNameRequest(request, this.client.settings)),
197
205
  headers: jsonContentHeaders,
198
206
  method: 'POST',
199
207
  path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names`
200
208
  }, unmarshalName);
209
+
210
+ /**
211
+ * Get information about a name. Retrieve information about a specific name.
212
+ *
213
+ * @param request - The request {@link GetNameRequest}
214
+ * @returns A Promise of Name
215
+ */
201
216
  getName = request => this.client.fetch({
202
217
  method: 'GET',
203
218
  path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names/${validatePathParam('nameId', request.nameId)}`
@@ -211,6 +226,12 @@ class API extends API$1 {
211
226
  * @returns A Promise of Name
212
227
  */
213
228
  waitForName = (request, options) => waitForResource(options?.stop ?? (res => Promise.resolve(!NAME_TRANSIENT_STATUSES.includes(res.status))), this.getName, request, options);
229
+
230
+ /**
231
+ * Delete an existing name. Delete a name by its ID.
232
+ *
233
+ * @param request - The request {@link DeleteNameRequest}
234
+ */
214
235
  deleteName = request => this.client.fetch({
215
236
  method: 'DELETE',
216
237
  path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names/${validatePathParam('nameId', request.nameId)}`
@@ -228,6 +249,14 @@ class API extends API$1 {
228
249
  }, unmarshalListNamesResponse);
229
250
  };
230
251
  })();
252
+
253
+ /**
254
+ * List all names by a Project ID. Retrieve information about all names from a
255
+ * Project ID.
256
+ *
257
+ * @param request - The request {@link ListNamesRequest}
258
+ * @returns A Promise of ListNamesResponse
259
+ */
231
260
  listNames = (() => {
232
261
  var _this4 = this;
233
262
  return function (request) {
@@ -237,16 +266,37 @@ class API extends API$1 {
237
266
  return enrichForPagination('names', _this4.pageOfListNames, request);
238
267
  };
239
268
  })();
269
+
270
+ /**
271
+ * Update name information. Update name information (CID, tag, name...).
272
+ *
273
+ * @param request - The request {@link UpdateNameRequest}
274
+ * @returns A Promise of Name
275
+ */
240
276
  updateName = request => this.client.fetch({
241
277
  body: JSON.stringify(marshalUpdateNameRequest(request, this.client.settings)),
242
278
  headers: jsonContentHeaders,
243
279
  method: 'PATCH',
244
280
  path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names/${validatePathParam('nameId', request.nameId)}`
245
281
  }, unmarshalName);
282
+
283
+ /**
284
+ * Export your private key. Export a private key by its ID.
285
+ *
286
+ * @param request - The request {@link ExportKeyNameRequest}
287
+ * @returns A Promise of ExportKeyNameResponse
288
+ */
246
289
  exportKeyName = request => this.client.fetch({
247
290
  method: 'GET',
248
291
  path: `/ipfs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/names/export-key/${validatePathParam('nameId', request.nameId)}`
249
292
  }, unmarshalExportKeyNameResponse);
293
+
294
+ /**
295
+ * Import your private key. Import a private key.
296
+ *
297
+ * @param request - The request {@link ImportKeyNameRequest}
298
+ * @returns A Promise of Name
299
+ */
250
300
  importKeyName = request => this.client.fetch({
251
301
  body: JSON.stringify(marshalImportKeyNameRequest(request, this.client.settings)),
252
302
  headers: jsonContentHeaders,
@@ -39,7 +39,6 @@ const unmarshalName = data => {
39
39
  throw new TypeError(`Unmarshalling the type 'Name' failed as data isn't a dictionary.`);
40
40
  }
41
41
  return {
42
- cid: data.cid,
43
42
  createdAt: unmarshalDate(data.created_at),
44
43
  key: data.key,
45
44
  name: data.name,
@@ -47,7 +46,8 @@ const unmarshalName = data => {
47
46
  projectId: data.project_id,
48
47
  status: data.status,
49
48
  tags: data.tags,
50
- updatedAt: unmarshalDate(data.updated_at)
49
+ updatedAt: unmarshalDate(data.updated_at),
50
+ value: data.value
51
51
  };
52
52
  };
53
53
  const unmarshalPin = data => {
@@ -132,9 +132,9 @@ const marshalPinOptions = (request, defaults) => ({
132
132
  required_zones: request.requiredZones
133
133
  });
134
134
  const marshalCreateNameRequest = (request, defaults) => ({
135
- cid: request.cid,
136
135
  name: request.name,
137
- project_id: request.projectId ?? defaults.defaultProjectId
136
+ project_id: request.projectId ?? defaults.defaultProjectId,
137
+ value: request.value
138
138
  });
139
139
  const marshalCreatePinByCIDRequest = (request, defaults) => ({
140
140
  cid: request.cid,
@@ -156,7 +156,8 @@ const marshalCreateVolumeRequest = (request, defaults) => ({
156
156
  const marshalImportKeyNameRequest = (request, defaults) => ({
157
157
  name: request.name,
158
158
  private_key: request.privateKey,
159
- project_id: request.projectId ?? defaults.defaultProjectId
159
+ project_id: request.projectId ?? defaults.defaultProjectId,
160
+ value: request.value
160
161
  });
161
162
  const marshalReplacePinRequest = (request, defaults) => ({
162
163
  cid: request.cid,
@@ -166,9 +167,9 @@ const marshalReplacePinRequest = (request, defaults) => ({
166
167
  volume_id: request.volumeId
167
168
  });
168
169
  const marshalUpdateNameRequest = (request, defaults) => ({
169
- cid: request.cid,
170
170
  name: request.name,
171
- tags: request.tags
171
+ tags: request.tags,
172
+ value: request.value
172
173
  });
173
174
  const marshalUpdateVolumeRequest = (request, defaults) => ({
174
175
  name: request.name,
@@ -1,4 +1,4 @@
1
- import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.1/node_modules/@scaleway/random-name/dist/index.js';
1
+ import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.2/node_modules/@scaleway/random-name/dist/index.js';
2
2
  import { isJSONObject } from '../../../helpers/json.js';
3
3
  import { unmarshalDate, unmarshalArrayOfObject, resolveOneOf } from '../../../helpers/marshalling.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.1/node_modules/@scaleway/random-name/dist/index.js';
1
+ import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.2/node_modules/@scaleway/random-name/dist/index.js';
2
2
  import { isJSONObject } from '../../../helpers/json.js';
3
3
  import { unmarshalDate, unmarshalArrayOfObject, resolveOneOf } from '../../../helpers/marshalling.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.1/node_modules/@scaleway/random-name/dist/index.js';
1
+ import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.2/node_modules/@scaleway/random-name/dist/index.js';
2
2
  import { isJSONObject } from '../../../helpers/json.js';
3
3
  import { unmarshalDate, unmarshalArrayOfObject } from '../../../helpers/marshalling.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.1/node_modules/@scaleway/random-name/dist/index.js';
1
+ import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.2/node_modules/@scaleway/random-name/dist/index.js';
2
2
  import { isJSONObject } from '../../../helpers/json.js';
3
3
  import { unmarshalTimeSeries } from '../../../scw/custom-marshalling.js';
4
4
  import { unmarshalArrayOfObject, unmarshalDate, resolveOneOf } from '../../../helpers/marshalling.js';
@@ -1,4 +1,4 @@
1
- import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.1/node_modules/@scaleway/random-name/dist/index.js';
1
+ import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.2/node_modules/@scaleway/random-name/dist/index.js';
2
2
  import { isJSONObject } from '../../../helpers/json.js';
3
3
  import { unmarshalTimeSeries } from '../../../scw/custom-marshalling.js';
4
4
  import { unmarshalArrayOfObject, unmarshalDate, resolveOneOf } from '../../../helpers/marshalling.js';
@@ -1,4 +1,4 @@
1
- import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.1/node_modules/@scaleway/random-name/dist/index.js';
1
+ import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.2/node_modules/@scaleway/random-name/dist/index.js';
2
2
  import { isJSONObject } from '../../../helpers/json.js';
3
3
  import { unmarshalDate, unmarshalArrayOfObject, resolveOneOf } from '../../../helpers/marshalling.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.1/node_modules/@scaleway/random-name/dist/index.js';
1
+ import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.2/node_modules/@scaleway/random-name/dist/index.js';
2
2
  import { isJSONObject } from '../../../helpers/json.js';
3
3
  import { unmarshalDate, unmarshalArrayOfObject } from '../../../helpers/marshalling.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.1/node_modules/@scaleway/random-name/dist/index.js';
1
+ import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.2/node_modules/@scaleway/random-name/dist/index.js';
2
2
  import { isJSONObject } from '../../../helpers/json.js';
3
3
  import { unmarshalDate, unmarshalArrayOfObject, resolveOneOf } from '../../../helpers/marshalling.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.1/node_modules/@scaleway/random-name/dist/index.js';
1
+ import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.2/node_modules/@scaleway/random-name/dist/index.js';
2
2
  import { isJSONObject } from '../../../helpers/json.js';
3
3
  import { unmarshalDate, unmarshalArrayOfObject, resolveOneOf } from '../../../helpers/marshalling.js';
4
4
 
@@ -31,6 +31,7 @@ const unmarshalOfferProduct = data => {
31
31
  emailAccountsQuota: data.email_accounts_quota,
32
32
  emailStorageQuota: data.email_storage_quota,
33
33
  hostingStorageQuota: data.hosting_storage_quota,
34
+ maxAddonDomains: data.max_addon_domains,
34
35
  name: data.name,
35
36
  option: data.option,
36
37
  ram: data.ram,