@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
@@ -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
 
@@ -345,6 +345,7 @@ const unmarshalPrivateNetwork = data => {
345
345
  createdAt: unmarshalDate(data.created_at),
346
346
  dhcpConfig: data.dhcp_config ? unmarshalPrivateNetworkDHCPConfig(data.dhcp_config) : undefined,
347
347
  ipamConfig: data.ipam_config ? unmarshalPrivateNetworkIpamConfig(data.ipam_config) : undefined,
348
+ ipamIds: data.ipam_ids,
348
349
  lb: data.lb ? unmarshalLb(data.lb) : undefined,
349
350
  privateNetworkId: data.private_network_id,
350
351
  staticConfig: data.static_config ? unmarshalPrivateNetworkStaticConfig(data.static_config) : undefined,
@@ -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
 
@@ -130,13 +130,13 @@ class API extends API$1 {
130
130
  return _this3.client.fetch({
131
131
  method: 'GET',
132
132
  path: `/secret-manager/v1alpha1/regions/${validatePathParam('region', request.region ?? _this3.client.settings.defaultRegion)}/folders`,
133
- urlParams: urlParams(['order_by', request.orderBy ?? 'created_at_asc'], ['page', request.page], ['page_size', request.pageSize ?? _this3.client.settings.defaultPageSize], ['path', request.path], ['project_id', request.projectId ?? _this3.client.settings.defaultProjectId])
133
+ urlParams: urlParams(['order_by', request.orderBy ?? 'created_at_asc'], ['page', request.page], ['page_size', request.pageSize ?? _this3.client.settings.defaultPageSize], ['path', request.path], ['project_id', request.projectId])
134
134
  }, unmarshalListFoldersResponse);
135
135
  };
136
136
  })();
137
137
 
138
138
  /**
139
- * List secrets. Retrieve the list of folders created within a Project.
139
+ * List folders. Retrieve the list of folders created within a Project.
140
140
  *
141
141
  * @param request - The request {@link ListFoldersRequest}
142
142
  * @returns A Promise of ListFoldersResponse
@@ -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,
@@ -1,3 +1,5 @@
1
- const isBrowser = () => typeof window !== 'undefined' && typeof window.document !== 'undefined';
1
+ const isBrowser = () =>
2
+ // eslint-disable-next-line @typescript-eslint/prefer-optional-chain
3
+ typeof window !== 'undefined' && typeof window.document !== 'undefined';
2
4
 
3
5
  export { isBrowser };