@scaleway/sdk 0.1.0-beta.29 → 0.1.0-beta.30

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/applesilicon/v1alpha1/marshalling.gen.js +1 -1
  2. package/dist/api/container/v1beta1/marshalling.gen.js +1 -1
  3. package/dist/api/function/v1beta1/marshalling.gen.js +1 -1
  4. package/dist/api/iam/v1alpha1/marshalling.gen.js +1 -1
  5. package/dist/api/instance/v1/api.gen.js +1 -1
  6. package/dist/api/instance/v1/marshalling.gen.js +1 -1
  7. package/dist/api/iot/v1/marshalling.gen.js +1 -1
  8. package/dist/api/k8s/v1/marshalling.gen.js +1 -1
  9. package/dist/api/lb/v1/marshalling.gen.js +1 -1
  10. package/dist/api/mnq/v1alpha1/marshalling.gen.js +1 -1
  11. package/dist/api/rdb/v1/marshalling.gen.js +1 -1
  12. package/dist/api/redis/v1/marshalling.gen.js +1 -1
  13. package/dist/api/redis/v1alpha1/marshalling.gen.js +1 -1
  14. package/dist/api/registry/v1/marshalling.gen.js +1 -1
  15. package/dist/api/tem/v1alpha1/api.gen.js +4 -0
  16. package/dist/api/tem/v1alpha1/content.gen.js +10 -0
  17. package/dist/api/vpc/v1/api.gen.js +1 -1
  18. package/dist/api/vpc/v1/marshalling.gen.js +1 -1
  19. package/dist/api/vpcgw/v1/marshalling.gen.js +1 -1
  20. package/dist/index.cjs +41 -257
  21. package/dist/index.d.ts +243 -54
  22. package/dist/node_modules/.pnpm/@scaleway_random-name@3.0.3/node_modules/@scaleway/random-name/dist/index.js +11 -0
  23. package/dist/scw/constants.js +1 -1
  24. package/node_modules/@scaleway/random-name/CHANGELOG.md +17 -70
  25. package/node_modules/@scaleway/random-name/dist/index.browser.js +1 -244
  26. package/node_modules/@scaleway/random-name/dist/index.js +1 -244
  27. package/node_modules/@scaleway/random-name/package.json +3 -2
  28. package/package.json +3 -3
  29. package/dist/node_modules/.pnpm/@scaleway_random-name@3.0.2/node_modules/@scaleway/random-name/dist/index.js +0 -254
@@ -1,4 +1,4 @@
1
- import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@3.0.2/node_modules/@scaleway/random-name/dist/index.js';
1
+ import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@3.0.3/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@3.0.2/node_modules/@scaleway/random-name/dist/index.js';
1
+ import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@3.0.3/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@3.0.2/node_modules/@scaleway/random-name/dist/index.js';
1
+ import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@3.0.3/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@3.0.2/node_modules/@scaleway/random-name/dist/index.js';
1
+ import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@3.0.3/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
 
@@ -444,6 +444,6 @@ class InstanceV1GenAPI extends API {
444
444
  };
445
445
  }
446
446
  }
447
- InstanceV1GenAPI.LOCALITIES = ['fr-par-1', 'fr-par-2', 'fr-par-3', 'nl-ams-1', 'nl-ams-2', 'pl-waw-1'];
447
+ InstanceV1GenAPI.LOCALITIES = ['fr-par-1', 'fr-par-2', 'fr-par-3', 'nl-ams-1', 'nl-ams-2', 'pl-waw-1', 'pl-waw-2'];
448
448
 
449
449
  export { InstanceV1GenAPI };
@@ -1,4 +1,4 @@
1
- import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@3.0.2/node_modules/@scaleway/random-name/dist/index.js';
1
+ import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@3.0.3/node_modules/@scaleway/random-name/dist/index.js';
2
2
  import { isJSONObject } from '../../../helpers/json.js';
3
3
  import { unmarshalArrayOfObject, unmarshalMapOfObject, resolveOneOf, unmarshalDate } from '../../../helpers/marshalling.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@3.0.2/node_modules/@scaleway/random-name/dist/index.js';
1
+ import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@3.0.3/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';
@@ -1,4 +1,4 @@
1
- import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@3.0.2/node_modules/@scaleway/random-name/dist/index.js';
1
+ import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@3.0.3/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@3.0.2/node_modules/@scaleway/random-name/dist/index.js';
1
+ import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@3.0.3/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@3.0.2/node_modules/@scaleway/random-name/dist/index.js';
1
+ import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@3.0.3/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@3.0.2/node_modules/@scaleway/random-name/dist/index.js';
1
+ import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@3.0.3/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@3.0.2/node_modules/@scaleway/random-name/dist/index.js';
1
+ import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@3.0.3/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@3.0.2/node_modules/@scaleway/random-name/dist/index.js';
1
+ import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@3.0.3/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@3.0.2/node_modules/@scaleway/random-name/dist/index.js';
1
+ import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@3.0.3/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,9 @@
1
+ import { waitForResource } from '../../../internal/async/interval-retrier.js';
1
2
  import { API } from '../../../scw/api.js';
2
3
  import { unmarshalServiceInfo } from '../../../scw/custom-marshalling.js';
3
4
  import { enrichForPagination } from '../../../scw/fetch/resource-paginator.js';
4
5
  import { validatePathParam, urlParams } from '../../../helpers/marshalling.js';
6
+ import { EMAIL_TRANSIENT_STATUSES, DOMAIN_TRANSIENT_STATUSES } from './content.gen.js';
5
7
  import { marshalCreateEmailRequest, unmarshalCreateEmailResponse, unmarshalEmail, unmarshalListEmailsResponse, unmarshalStatistics, marshalCreateDomainRequest, unmarshalDomain, unmarshalListDomainsResponse } from './marshalling.gen.js';
6
8
 
7
9
  // This file was automatically generated. DO NOT EDIT.
@@ -38,6 +40,7 @@ class TemV1Alpha1GenAPI extends API {
38
40
  method: 'GET',
39
41
  path: `/transactional-email/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/emails/${validatePathParam('emailId', request.emailId)}`
40
42
  }, unmarshalEmail);
43
+ this.waitForEmail = (request, options) => waitForResource((options == null ? void 0 : options.stop) ?? (res => Promise.resolve(!EMAIL_TRANSIENT_STATUSES.includes(res.status))), this.getEmail, request, options);
41
44
  this.pageOfListEmails = function (request) {
42
45
  if (request === void 0) {
43
46
  request = {};
@@ -80,6 +83,7 @@ class TemV1Alpha1GenAPI extends API {
80
83
  method: 'GET',
81
84
  path: `/transactional-email/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/domains/${validatePathParam('domainId', request.domainId)}`
82
85
  }, unmarshalDomain);
86
+ this.waitForDomain = (request, options) => waitForResource((options == null ? void 0 : options.stop) ?? (res => Promise.resolve(!DOMAIN_TRANSIENT_STATUSES.includes(res.status))), this.getDomain, request, options);
83
87
  this.pageOfListDomains = function (request) {
84
88
  if (request === void 0) {
85
89
  request = {};
@@ -0,0 +1,10 @@
1
+ // This file was automatically generated. DO NOT EDIT.
2
+ // If you have any remark or suggestion do not hesitate to open an issue.
3
+
4
+ /** Lists transient statutes of the enum {@link DomainStatus}. */
5
+ const DOMAIN_TRANSIENT_STATUSES = ['pending'];
6
+
7
+ /** Lists transient statutes of the enum {@link EmailStatus}. */
8
+ const EMAIL_TRANSIENT_STATUSES = ['new', 'sending'];
9
+
10
+ export { DOMAIN_TRANSIENT_STATUSES, EMAIL_TRANSIENT_STATUSES };
@@ -21,7 +21,7 @@ class VpcV1GenAPI extends API {
21
21
  return _this.client.fetch({
22
22
  method: 'GET',
23
23
  path: `/vpc/v1/zones/${validatePathParam('zone', request.zone ?? _this.client.settings.defaultZone)}/private-networks`,
24
- urlParams: urlParams(['name', request.name], ['order_by', request.orderBy ?? 'created_at_asc'], ['organization_id', request.organizationId ?? _this.client.settings.defaultOrganizationId], ['page', request.page], ['page_size', request.pageSize ?? _this.client.settings.defaultPageSize], ['project_id', request.projectId ?? _this.client.settings.defaultProjectId], ['tags', request.tags])
24
+ urlParams: urlParams(['name', request.name], ['order_by', request.orderBy ?? 'created_at_asc'], ['organization_id', request.organizationId ?? _this.client.settings.defaultOrganizationId], ['page', request.page], ['page_size', request.pageSize ?? _this.client.settings.defaultPageSize], ['private_network_ids', request.privateNetworkIds], ['project_id', request.projectId ?? _this.client.settings.defaultProjectId], ['tags', request.tags])
25
25
  }, unmarshalListPrivateNetworksResponse);
26
26
  };
27
27
  this.listPrivateNetworks = function (request) {
@@ -1,4 +1,4 @@
1
- import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@3.0.2/node_modules/@scaleway/random-name/dist/index.js';
1
+ import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@3.0.3/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@3.0.2/node_modules/@scaleway/random-name/dist/index.js';
1
+ import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@3.0.3/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