@scaleway/sdk 2.54.0 → 2.56.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 (50) hide show
  1. package/dist/api/applesilicon/v1alpha1/content.gen.cjs +2 -1
  2. package/dist/api/applesilicon/v1alpha1/content.gen.js +2 -1
  3. package/dist/api/applesilicon/v1alpha1/types.gen.d.ts +1 -1
  4. package/dist/api/block/v1alpha1/api.gen.cjs +1 -1
  5. package/dist/api/block/v1alpha1/api.gen.d.ts +1 -1
  6. package/dist/api/block/v1alpha1/api.gen.js +1 -1
  7. package/dist/api/block/v1alpha1/marshalling.gen.cjs +3 -2
  8. package/dist/api/block/v1alpha1/marshalling.gen.js +3 -2
  9. package/dist/api/block/v1alpha1/types.gen.d.ts +2 -2
  10. package/dist/api/cockpit/v1/marshalling.gen.cjs +5 -3
  11. package/dist/api/cockpit/v1/marshalling.gen.js +5 -3
  12. package/dist/api/cockpit/v1/types.gen.d.ts +11 -7
  13. package/dist/api/iam/v1alpha1/api.gen.cjs +14 -0
  14. package/dist/api/iam/v1alpha1/api.gen.d.ts +8 -1
  15. package/dist/api/iam/v1alpha1/api.gen.js +15 -1
  16. package/dist/api/iam/v1alpha1/index.gen.d.ts +1 -1
  17. package/dist/api/iam/v1alpha1/marshalling.gen.cjs +28 -0
  18. package/dist/api/iam/v1alpha1/marshalling.gen.d.ts +2 -1
  19. package/dist/api/iam/v1alpha1/marshalling.gen.js +28 -0
  20. package/dist/api/iam/v1alpha1/types.gen.d.ts +26 -0
  21. package/dist/api/instance/v1/api.gen.cjs +32 -14
  22. package/dist/api/instance/v1/api.gen.d.ts +32 -14
  23. package/dist/api/instance/v1/api.gen.js +32 -14
  24. package/dist/api/instance/v1/types.gen.d.ts +17 -10
  25. package/dist/api/k8s/v1/marshalling.gen.cjs +2 -1
  26. package/dist/api/k8s/v1/marshalling.gen.js +2 -1
  27. package/dist/api/k8s/v1/types.gen.d.ts +1 -0
  28. package/dist/api/mongodb/v1alpha1/api.gen.cjs +31 -0
  29. package/dist/api/mongodb/v1alpha1/api.gen.d.ts +19 -1
  30. package/dist/api/mongodb/v1alpha1/api.gen.js +32 -1
  31. package/dist/api/mongodb/v1alpha1/index.gen.d.ts +1 -1
  32. package/dist/api/mongodb/v1alpha1/marshalling.gen.cjs +10 -4
  33. package/dist/api/mongodb/v1alpha1/marshalling.gen.d.ts +3 -1
  34. package/dist/api/mongodb/v1alpha1/marshalling.gen.js +10 -4
  35. package/dist/api/mongodb/v1alpha1/types.gen.d.ts +26 -6
  36. package/dist/api/webhosting/v1/api.gen.cjs +14 -0
  37. package/dist/api/webhosting/v1/api.gen.d.ts +9 -1
  38. package/dist/api/webhosting/v1/api.gen.js +15 -1
  39. package/dist/api/webhosting/v1/index.gen.d.ts +1 -1
  40. package/dist/api/webhosting/v1/marshalling.gen.cjs +14 -0
  41. package/dist/api/webhosting/v1/marshalling.gen.d.ts +2 -1
  42. package/dist/api/webhosting/v1/marshalling.gen.js +14 -0
  43. package/dist/api/webhosting/v1/types.gen.d.ts +19 -0
  44. package/dist/scw/client.cjs +4 -1
  45. package/dist/scw/client.d.ts +1 -2
  46. package/dist/scw/client.js +5 -2
  47. package/dist/scw/constants.cjs +1 -1
  48. package/dist/scw/constants.d.ts +2 -2
  49. package/dist/scw/constants.js +1 -1
  50. package/package.json +2 -2
@@ -462,6 +462,15 @@ export type HostingApiGetHostingRequest = {
462
462
  /** Hosting ID. */
463
463
  hostingId: string;
464
464
  };
465
+ export type HostingApiGetResourceSummaryRequest = {
466
+ /**
467
+ * Region to target. If none is passed will use default region from the
468
+ * config.
469
+ */
470
+ region?: Region;
471
+ /** Hosting ID. */
472
+ hostingId: string;
473
+ };
465
474
  export type HostingApiListHostingsRequest = {
466
475
  /**
467
476
  * Region to target. If none is passed will use default region from the
@@ -674,6 +683,16 @@ export interface ResetHostingPasswordResponse {
674
683
  /** New temporary password. */
675
684
  oneTimePassword: string;
676
685
  }
686
+ export interface ResourceSummary {
687
+ /** Total number of active databases in the Web Hosting plan. */
688
+ databasesCount: number;
689
+ /** Total number of active email accounts in the Web Hosting plan. */
690
+ mailAccountsCount: number;
691
+ /** Total number of active FTP accounts in the Web Hosting plan. */
692
+ ftpAccountsCount: number;
693
+ /** Total number of active domains in the the Web Hosting plan. */
694
+ websitesCount: number;
695
+ }
677
696
  export interface Session {
678
697
  /** Logged user's session URL. */
679
698
  url: string;
@@ -23,6 +23,9 @@ const createAdvancedClient = (...configs) => {
23
23
  settings
24
24
  };
25
25
  };
26
- const createClient = (profile = {}) => createAdvancedClient(clientIniFactory.withProfile(profile));
26
+ const createClient = (settings = {}) => createAdvancedClient(
27
+ clientIniFactory.withProfile(settings),
28
+ clientIniFactory.withAdditionalInterceptors(settings.interceptors ?? [])
29
+ );
27
30
  exports.createAdvancedClient = createAdvancedClient;
28
31
  exports.createClient = createClient;
@@ -1,5 +1,4 @@
1
1
  import type { ClientConfig } from './client-ini-factory';
2
- import type { Profile } from './client-ini-profile';
3
2
  import type { Settings } from './client-settings';
4
3
  import type { Fetcher } from './fetch/build-fetcher';
5
4
  /**
@@ -69,4 +68,4 @@ export declare const createAdvancedClient: (...configs: ClientConfig[]) => Clien
69
68
  *
70
69
  * @public
71
70
  */
72
- export declare const createClient: (profile?: Profile) => Client;
71
+ export declare const createClient: (settings?: Partial<Settings>) => Client;
@@ -1,5 +1,5 @@
1
1
  import { getLogger } from "../internal/logger/index.js";
2
- import { withLegacyInterceptors, withProfile } from "./client-ini-factory.js";
2
+ import { withLegacyInterceptors, withAdditionalInterceptors, withProfile } from "./client-ini-factory.js";
3
3
  import { assertValidSettings } from "./client-settings.js";
4
4
  import { version, userAgent } from "./constants.js";
5
5
  import { buildFetcher } from "./fetch/build-fetcher.js";
@@ -21,7 +21,10 @@ const createAdvancedClient = (...configs) => {
21
21
  settings
22
22
  };
23
23
  };
24
- const createClient = (profile = {}) => createAdvancedClient(withProfile(profile));
24
+ const createClient = (settings = {}) => createAdvancedClient(
25
+ withProfile(settings),
26
+ withAdditionalInterceptors(settings.interceptors ?? [])
27
+ );
25
28
  export {
26
29
  createAdvancedClient,
27
30
  createClient
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const version = "v2.53.0";
3
+ const version = "v2.55.0";
4
4
  const userAgent = `scaleway-sdk-js/${version}`;
5
5
  exports.userAgent = userAgent;
6
6
  exports.version = version;
@@ -1,2 +1,2 @@
1
- export declare const version = "v2.53.0";
2
- export declare const userAgent = "scaleway-sdk-js/v2.53.0";
1
+ export declare const version = "v2.55.0";
2
+ export declare const userAgent = "scaleway-sdk-js/v2.55.0";
@@ -1,4 +1,4 @@
1
- const version = "v2.53.0";
1
+ const version = "v2.55.0";
2
2
  const userAgent = `scaleway-sdk-js/${version}`;
3
3
  export {
4
4
  userAgent,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk",
3
- "version": "2.54.0",
3
+ "version": "2.56.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Scaleway SDK.",
6
6
  "keywords": [
@@ -39,5 +39,5 @@
39
39
  "bundledDependencies": [
40
40
  "@scaleway/random-name"
41
41
  ],
42
- "gitHead": "549c4e0a2c570e83b330c4f24b8eebe2cdc549d4"
42
+ "gitHead": "9180ab7f2eebe5e35dd51605641ae0d627bf024f"
43
43
  }